ribs.emitters.operators.GaussianOperator

class ribs.emitters.operators.GaussianOperator(sigma, seed=None)[source]

Adds Gaussian noise to solutions.

Parameters
  • sigma (float or array-like) – Standard deviation of the Gaussian distribution. Note we assume the Gaussian is diagonal, so if this argument is an array, it must be 1D.

  • seed (int) – Value to seed the random number generator. Set to None to avoid a fixed seed.

Methods

ask(parents)

Adds Gaussian noise to parents.

Attributes

parent_type

Parent Type to be used by selector.

ask(parents)[source]

Adds Gaussian noise to parents.

Parameters

parents (array-like) – (batch_size, solution_dim) array of solutions to be mutated.

Returns

(batch_size, solution_dim) array that contains batch_size mutated solutions.

Return type

numpy.ndarray

property parent_type

Parent Type to be used by selector.

Type

int