mlens.parallel.estimation module

ML-ENSEMBLE

author:Sebastian Flennerhag
copyright:2017
licence:MIT

Base class for estimation.

class mlens.parallel.estimation.BaseEstimator(layer)[source]

Bases: object

Base class for estimating a layer in parallel.

Estimation class to be used as based for a layer estimation engined that is callable by the ParallelProcess job manager.

A subclass must implement a constructor that accepts the following args:
  • job : the Job instance containing relevant data
  • layer: the Layer instance to estimate
  • n: the position in the LayerContainer stack of the layer

as well as a run method that accepts a Parallel instance.

Parameters:layer (Layer) – layer to be estimated.
run(parallel)[source]

Method for executing estimation.

Default method relies on the default constructor. Both can be replaced if desired.

Parameters:parallel (object) – Parallel instance.