rcognita.models.ModelQuadratic
- class rcognita.models.ModelQuadratic(dim_input, single_weight_min=1e-06, single_weight_max=100.0, force_positive_def=True)
Quadratic model. May contain mixed terms.
- __init__(dim_input, single_weight_min=1e-06, single_weight_max=100.0, force_positive_def=True)
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(dim_input[, single_weight_min, …])Initialize self.
cache_weights
([weights])forward
(*args, **kwargs)restore_weights
()Assign the weights of the cached model to the active model.
update_and_cache_weights
(weights)update_weights
(weights)Attributes
model_name