cofi.InversionResult#
- class cofi.InversionResult(res: dict)[source]#
The result class of an inversion run.
You won’t need to create an object of this class by yourself. See
Inversion.runfor how you will get such an instance.See also
When using sampling methods, you get a
SamplingResultobject, with additional analysis methods attached.Reference Details
- success: bool#
indicates status of the inversion run
- Type:
bool
- res: dict#
raw output from backend ineference tools
- Type:
dict
- class cofi.SamplingResult(res: dict)[source]#
the result class of an inversion run, when the inversion is sampling-based
This is a subclass of
InversionResult, so has the full functionality of it. Additionally, you can convert aSamplingResultobject into anarviz.InferenceDataobject so that various plotting functionalities are available from arviz.Reference Details
- to_arviz(**kwargs)[source]#
convert sampler result into an
arviz.InferenceDataobjectNote that this method takes in keyword arguments that matches the
arviz.from_<library>function. If your results are sampled from emcee, then you can pass in any keyword arguments as described inarviz.from_emcee.- Returns:
an
arviz.InferenceDataobject converted from your sampler- Return type:
arviz.InferenceData
- Raises:
NotImplementedError – when sampling result of current type (
type(SamplingResult.sampler))) cannot be converted into anarviz.InferenceData