BPt.p.Scalar.set_mutation#

Scalar.set_mutation(*args, **kwargs)[source]#

Output will be cast to integer(s) through deterministic rounding.

Parameters
sigma: Array/Log or float

The standard deviation of the mutation. If a Parameter is provided, it will replace the current value. If a float is provided, it will either replace a previous float value, or update the value of the Parameter.

exponent: float

exponent for the logarithmic mode. With the default sigma=1, using exponent=2 will perform x2 or /2 “on average” on the value at each mutation.

Returns
self