nifreeze.model.base module¶
Base infrastructure for nifreeze’s models.
- class nifreeze.model.base.BaseModel(self, dataset, **kwargs)[source]¶
Bases:
object
Defines the interface and default methods.
Implements the interface of
dipy.reconst.base.ReconstModel
. Instead of inheriting from the abstract base, this implementation follows type adaptation principles, as it is easier to maintain and to read (see https://www.youtube.com/watch?v=3MNVP9-hglc).Base initialization.
- class nifreeze.model.base.ExpectationModel(self, dataset, stat='median', **kwargs)[source]¶
Bases:
BaseModel
A trivial model that returns an expectation map (for example, average).
Initialize a new model.