pygsti.objectivefns.objectivefns.ObjectiveFunction#
- class ObjectiveFunction#
Bases:
objectSo far, this is just a base class for organizational purposes
Methods
__init__()chi2k_distributed_qty(objective_function_value)Convert a value of this objective function to one that is expected to be chi2_k distributed.
- chi2k_distributed_qty(objective_function_value)#
Convert a value of this objective function to one that is expected to be chi2_k distributed.
For instance, if the objective function is DeltaLogL then this function would multiply objective_function_value by 2, whereas in the case of a chi-squared objective function this function just return objective_function_value.
- Parameters:
objective_function_value (float) – A value of this objective function, i.e. one returned from self.fn(…).
- Return type:
float