matflow.subset_simulation.subset_simulation_result.SubsetSimulationResult#
- class matflow.subset_simulation.subset_simulation_result.SubsetSimulationResult(pf: 'float', cov: 'float | None', converged: 'bool', thresholds: 'NDArray', level_covs: 'NDArray', levels: 'list[LevelSamplingResult]', num_fine_evals: 'int', num_coarse_evals: 'int', num_failed_per_level: 'NDArray', x_original: 'NDArray | None' = None, final_chain_seeds: 'NDArray | None' = None, final_chain_g: 'NDArray | None' = None, final_all_x: 'NDArray | None' = None, final_all_g: 'NDArray | None' = None, debug_data: 'dict[str, Any] | None' = None)#
Bases:
ParameterValueMethods
Write a list (from an element group) of parameter values to an HDF5 group.
Write this parameter value to an HDF5 group.
Prepare this parameter value for serialisation as JSON.
Extract a parameter value from an HDF5 group.
Extract a parameter value from JSON data.
Serialise this parameter value as a dictionary.
Attributes
- Parameters:
pf (float) –
cov (float | None) –
converged (bool) –
levels (list[matflow.subset_simulation.subset_simulation_result.LevelSamplingResult]) –
num_fine_evals (int) –
num_coarse_evals (int) –
num_failed_per_level (ndarray[tuple[Any, ...], dtype[_ScalarT]]) –
x_original (ndarray[tuple[Any, ...], dtype[_ScalarT]] | None) –
final_chain_seeds (ndarray[tuple[Any, ...], dtype[_ScalarT]] | None) –
final_chain_g (ndarray[tuple[Any, ...], dtype[_ScalarT]] | None) –
final_all_x (ndarray[tuple[Any, ...], dtype[_ScalarT]] | None) –
final_all_g (ndarray[tuple[Any, ...], dtype[_ScalarT]] | None) –
- classmethod dump_element_group_to_HDF5_group(objs, group)#
Write a list (from an element group) of parameter values to an HDF5 group.
- Parameters:
objs (list[Self]) –
group (HDF5Group) –
- dump_to_HDF5_group(group)#
Write this parameter value to an HDF5 group.
- Parameters:
group (HDF5Group) –
- prepare_JSON_dump()#
Prepare this parameter value for serialisation as JSON.
- classmethod save_from_HDF5_group(group, param_id, workflow)#
Extract a parameter value from an HDF5 group.
- classmethod save_from_JSON(data, param_id, workflow)#
Extract a parameter value from JSON data.