ResultsNormalized

class ompy.ResultsNormalized(name, _Model__isfrozen=False, nld=<factory>, gsf=<factory>, pars=<factory>, samples=<factory>, nld_model=<factory>, gsf_model_low=<factory>, gsf_model_high=<factory>)[source]

Bases: ompy.Model

Class to store the results of the Oslo Method

Variables

Methods Summary

asdict()

wrapper for dataclasses.asdict()

get_parameters()

Returns a list of the names of the paramters

is_changed([include, exclude])

Verify that defaults arguments have been changed

load(path)

Loads own parameters from path

save(path)

Save the model parameters to path

Methods Documentation

asdict()

wrapper for dataclasses.asdict()

Return type

Dict[str, Any]

get_parameters()

Returns a list of the names of the paramters

Return type

List[str]

is_changed(include=[], exclude=[])

Verify that defaults arguments have been changed

Parameters
  • include (List[str], optional) – List of attribute names be included in the check. Default is all attributes.

  • exclude (List[str], optional) – List of attribute names to exclude be excluded from check. Default is none

Raises

ValueError – If parameters are still the default values

Return type

None

load(path)

Loads own parameters from path

Parameters

path (Union[str, Path]) – Path to pickled file

Raises

IOError – Path doesn’t exist

Return type

None

save(path)

Save the model parameters to path

Parameters

path (Union[str, Path]) – The path

Return type

None

gsf = None

normalized or initial, depending on method

Type

(Vector or List[Vector])

gsf_model_high = None

gsf model at high Eγ for each gsf

Type

List[AbstractExtrapolationModel]

gsf_model_low = None

gsf model at low Eγ for each gsf

Type

List[AbstractExtrapolationModel]

nld = None

normalized or initial, depending on method

Type

(Vector or List[Vector])

nld_model = None

nld model for each nld

Type

(List[Callable[.., Any]])

pars = None

Parameters for the normalization/models used there

Type

(List[Dict[str, Any]])

samples = None

Samples from the posterior of the parameters

Type

(List[Dict[str, Any]])