biogeme.results_processing.recycle_pickle module

Recycle old pickle files and transform them into YAML files

Michel Bierlaire Wed Oct 2 06:43:33 2024

class biogeme.results_processing.recycle_pickle.Beta[source]

Bases: object

Class gathering the information related to the parameters of the model

class biogeme.results_processing.recycle_pickle.BiogemeUnpickler(file, *, fix_imports=True, encoding='ASCII', errors='strict', buffers=())[source]

Bases: Unpickler

find_class(module, name)[source]

Return an object from a specified module.

If necessary, the module will be imported. Subclasses may override this method (e.g. to restrict unpickling of arbitrary classes and functions).

This method is called whenever a class or a function object is needed. Both arguments passed are str objects.

class biogeme.results_processing.recycle_pickle.RawResults[source]

Bases: object

Class containing the raw results from the estimation

biogeme.results_processing.recycle_pickle.pickle_to_yaml(pickle_filename, yaml_filename)[source]

Transforms a pickle file into a YAML format with the estimation results.

Parameters:
  • pickle_filename (str) – name of the input file

  • yaml_filename (str) – name of the output file

Return type:

None

biogeme.results_processing.recycle_pickle.read_pickle_biogeme(filename)[source]

Read an old pickle file, when the version of Biogeme used to create it is unknown

Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_10(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_11(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_12(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_13(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_14(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_7(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results

biogeme.results_processing.recycle_pickle.read_pickle_biogeme_3_2_8(filename)[source]
Parameters:

filename (str) – name of the pickle file

Return type:

RawEstimationResults

Returns:

raw estimation results