Table of Contents

Class BaseMutation

Namespace
OptunaSharp.Samplers.Nsgaii
Assembly
OptunaSharp.dll

Base class for mutations. Port of optuna/samplers/nsgaii/_mutations/_base.py: BaseMutation (experimental v5.0.0).

A mutation operation is used by NSGAIISampler to mutate a numerical parameter when creating a new individual.

public abstract class BaseMutation
Inheritance
BaseMutation
Derived
Inherited Members

Methods

Mutation(double, NumPyRandom, Study, double[])

Mutate the given parameter.

public abstract double Mutation(double param, NumPyRandom rng, Study study, double[] searchSpaceBounds)

Parameters

param double

A parameter value in the transformed numerical search space.

rng NumPyRandom

An instance of numpy.random.RandomState.

study Study

Target study object.

searchSpaceBounds double[]

A length-2 array [lower, upper] of numerical distribution bounds from the transformed search space.

Returns

double

A mutated parameter value in the transformed numerical search space.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.