leaspy.models.riemanian_manifold
Classes
Manifold model for multiple variables of interest (logistic or linear formulation). |
|
Compute initial values for model parameters. |
|
Manifold model for multiple variables of interest (linear formulation). |
|
Manifold model for multiple variables of interest (logistic formulation). |
Module Contents
- class RiemanianManifoldModel(name, variables_to_track=None, **kwargs)
Bases:
leaspy.models.time_reparametrized.TimeReparametrizedModelManifold model for multiple variables of interest (logistic or linear formulation).
- Parameters:
- name
str The name of the model.
- **kwargs
Hyperparameters of the model (including noise_model)
- name
- Raises:
LeaspyModelInputErrorIf hyperparameters are inconsistent
- Parameters:
name (str)
variables_to_track (Optional[Iterable[leaspy.variables.specs.VariableName]])
- classmethod compute_sufficient_statistics(state)
Compute the model’s sufficient statistics.
- get_variables_specs()
Return the specifications of the variables (latent variables, derived variables, model ‘parameters’) that are part of the model.
- Returns:
- NamedVariables
The specifications of the model’s variables.
- Return type:
- classmethod model_no_sources(*, rt, metric, v0, g)
Returns a model without source. A bit dirty?
- class LinearInitializationMixin
Compute initial values for model parameters.
- class LinearModel(name, **kwargs)
Bases:
LinearInitializationMixin,RiemanianManifoldModelManifold model for multiple variables of interest (linear formulation).
- Parameters:
name (str)
- get_variables_specs()
Return the specifications of the variables (latent variables, derived variables, model ‘parameters’) that are part of the model.
- Returns:
- NamedVariables
The specifications of the model’s variables.
- Return type:
- static metric(*, g)
Used to define the corresponding variable.
- class LogisticInitializationMixin
- class LogisticModel(name, **kwargs)
Bases:
LogisticInitializationMixin,RiemanianManifoldModelManifold model for multiple variables of interest (logistic formulation).
- Parameters:
name (str)
- get_variables_specs()
Return the specifications of the variables (latent variables, derived variables, model ‘parameters’) that are part of the model.
- Returns:
- NamedVariables
The specifications of the model’s variables.
- Return type:
- static metric(*, g)
Used to define the corresponding variable.
- classmethod model_with_sources(*, rt, space_shifts, metric, v0, g)
Returns a model with sources.
- Parameters:
rt (leaspy.utils.weighted_tensor.TensorOrWeightedTensor[float])
space_shifts (leaspy.utils.weighted_tensor.TensorOrWeightedTensor[float])
metric (leaspy.utils.weighted_tensor.TensorOrWeightedTensor[float])
v0 (leaspy.utils.weighted_tensor.TensorOrWeightedTensor[float])
g (leaspy.utils.weighted_tensor.TensorOrWeightedTensor[float])
- Return type: