quantlab.model.config.PredictorViewConfig#

class quantlab.model.config.PredictorViewConfig(predictor)[source]#

Bases: object

Fields every quantlab.model.view.PredictorView shares.

predictor is the wrapped predictor, a model, an ensemble or another view; a view’s own config class subclasses this one and adds its fields.

Examples

>>> sorted(PredictorViewConfig(predictor=None).__dataclass_fields__)
['predictor']
predictor#

The wrapped predictor, to which the view forwards the protocol.