leaspy.io.data.factory
Defines the noise model factory.
Attributes
Classes
Enumeration defining the possible names for observation models. |
Functions
|
Factory for observation models. |
Module Contents
- class DataframeDataReaderNames(*args, **kwds)
Bases:
enum.EnumEnumeration defining the possible names for observation models.
- EVENT = 'event'
- VISIT = 'visit'
- JOINT = 'joint'
- DataframeDataReaderFactoryInput
- dataframe_data_reader_factory(reader, **kwargs)
Factory for observation models.
- Parameters:
- model
strorObservationModelordict[str, …] If an instance of a subclass of
ObservationModel, returns the instance.If a string, then returns a new instance of the appropriate class (with optional parameters kws).
If a dictionary, it must contain the ‘name’ key and other initialization parameters.
- **kwargs
Optional parameters for initializing the requested observation model when a string.
- model
- Returns:
ObservationModelThe desired observation model.
- Raises:
LeaspyModelInputErrorIf model is not supported.
- Parameters:
reader (DataframeDataReaderFactoryInput)
- Return type: