PCRRegression¶
-
class
menpofit.math.
PCRRegression
(variance=None, bias=True)[source]¶ Bases:
object
Class for training and applying Multivariate Linear Regression using Principal Component Regression.
- Parameters
variance (float or
None
, optional) – The SVD variance.bias (bool, optional) – If
True
, a bias term is used.
-
increment
(X, Y)[source]¶ Incrementally update the regression model.
- Parameters
X (
(n_features, n_samples)
ndarray) – The array of feature vectors.Y (
(n_dims, n_samples)
ndarray) – The array of target vectors.
- Raises
ValueError – Model is not incrementable