chronpy.psd.models#
- build_namespace(names: list[str]) dict[str, list[str]][source]#
Build a namespace from a sequence of names.
- class Model(component: Component)[source]#
Bases:
ModuleAttributes
default
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
power
- property prior#
- property default#
- class Component(*args: Any, **kwargs: Any)[source]#
Bases:
ModuleAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power
- property params#
- property prior#
- class CompositeComponent(lhs: Component, rhs: Component, op: Callable)[source]#
Bases:
ComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power
- class NumIntComponent(*args: Any, **kwargs: Any)[source]#
Bases:
ComponentBase class for components that require numerical integration.
- Parameters:
Attributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
continuum
integral
power
- class Const(*args: Any, **kwargs: Any)[source]#
Bases:
ComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power
- class PL(*args: Any, **kwargs: Any)[source]#
Bases:
ComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power
- class BrokenPL(*args: Any, **kwargs: Any)[source]#
Bases:
ComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power
- class BentPL(*args: Any, **kwargs: Any)[source]#
Bases:
NumIntComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
continuum
integral
power
- class SmoothlyBrokenPL(*args: Any, **kwargs: Any)[source]#
Bases:
NumIntComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
continuum
integral
power
- class Lorentz(*args: Any, **kwargs: Any)[source]#
Bases:
ComponentAttributes
params
prior
Methods
eval(**attributes)Sets the Module to evaluation mode.
iter_children()Iterates over all children
Module's of the current Module.iter_modules()Recursively iterates over all nested
Module's of the current Module, including the current Module.perturb(name, value, variable_type)Add an zero-value variable ("perturbation") to the intermediate value.
set_attributes(*filters[, raise_if_not_found])Sets the attributes of nested Modules including the current Module.
sow(variable_type, name, value, reduce_fn, ...)sow()can be used to collect intermediate values without the overhead of explicitly passing a container through each Module call.train(**attributes)Sets the Module to training mode.
integral
power