idmtools_calibra.resamplers.calibration_point module#

class idmtools_calibra.resamplers.calibration_point.CalibrationPoint(parameters=None, likelihood=None)[source]#

Bases: object

DYNAMIC = 'dynamic'#
STATIC = 'static'#
ALL = 'all'#
PARAMETER_TYPES = ['dynamic', 'static', 'all']#
LIST = 'list'#
SERIES = 'series'#
NUMPY = 'numpy'#
to_value_dict(parameter_type=None, include_likelihood=False)[source]#

Return the dict of dict containing {parameter_name:value} for this CalibrationPoint

get_attribute(key, parameter_type=None, as_type=None)[source]#

Returns the specified attribute of each CalibrationParameter as a list, ordered by parameter

Parameters:
  • key

  • parameter_type

  • as_type

Returns:

property parameter_names#
get_parameter(name)[source]#

Relies on their being exactly one parameter with the given name.

Parameters:

name

Returns:

to_dict()[source]#

Converts CalibrationPoint objects to a dictionary. Useful e.g. for dumping to a json file.

Returns:

a dict containing all needed information for recreating a CalibrationPoint object via from_dict()

classmethod from_dict(src_dict)[source]#

Inverse method of to_dict. Builds point from a Dictionary :param src_dict: a dictionary equivalent to one returned by to_dict()

Returns:

a CalibrationPoint object

to_dataframe(parameter_type=None)[source]#
write_point(filename)[source]#
class idmtools_calibra.resamplers.calibration_point.CalibrationParameter(name, min, max, value, mapTo, dynamic, guess)[source]#

Bases: object

classmethod from_dict(parameters)[source]#
classmethod from_calibration_parameter(parameter, value)[source]#

Create a new CalibrationParameter object from another one but with a new value. :param parameter: input CalibrationParameter to copy :param value: the value to override the copy with :return: a CalibrationParameter object

to_dict()[source]#
to_dataframe()[source]#