regression¶
- menpo.fit.regression.regressionfunctions.regression(X, T, regression_type, **kwargs)[source]¶
Method that solves the regression equation.
Parameters: X: numpy.array :
The regression features used to create the coefficient matrix.
T: numpy.array :
The shapes differential that denote the dependent variable.
regression_type: function/closure :
The closure of the regression method to be used. It must be one of the functions defined below.
Returns: regression_closure: function/closure :
The closure of the regression method.
Raises: ValueError :
regression_type can only be: a closure defining a particular regression technique. Several examples of such closures can be found in menpo.fit.regression.regressionfunctions.py (mlr, mlr_svd, mlr_pca, pcr, pls, ccr, ...).