generators
Extends Hartmann functions to incorporate fidelities.
class MFHartmannGenerator(n_fidelities, fidelity_bias, fidelity_noise, seed=None)
#
Bases: ABC
A multifidelity version of the Hartmann3 function.
Carried a bias term, which flattens the objective, and a noise term.
The impact of both terms decrease with increasing fidelity, meaning that
num_fidelities
is the best fidelity. This fidelity level also constitutes
a noiseless, true evaluation of the Hartmann function.
PARAMETER | DESCRIPTION |
---|---|
n_fidelities |
The fidelity at which the function is evalated.
TYPE:
|
fidelity_bias |
Amount of bias, realized as a flattening of the objective.
TYPE:
|
fidelity_noise |
Amount of noise, decreasing linearly (in st.dev.) with fidelity.
TYPE:
|
seed |
The seed to use for the noise.
TYPE:
|
Source code in src/mfpbench/synthetic/hartmann/generators.py
def __call__(z, Xs)
abstractmethod
#
class MFHartmann3
#
Bases: MFHartmannGenerator
def __call__(z, Xs)
#
Evaluate the function at the given fidelity and points.
PARAMETER | DESCRIPTION |
---|---|
z |
The fidelity.
TYPE:
|
Xs |
Parameters of the function. |
RETURNS | DESCRIPTION |
---|---|
float
|
The function value |
Source code in src/mfpbench/synthetic/hartmann/generators.py
class MFHartmann6
#
Bases: MFHartmannGenerator
def __call__(z, Xs)
#
Evaluate the function at the given fidelity and points.
PARAMETER | DESCRIPTION |
---|---|
z |
The fidelity it's evaluated at.
TYPE:
|
Xs |
Parameters of the function |
RETURNS | DESCRIPTION |
---|---|
float
|
The function value |