SemiParametricRegressor

class menpo.fit.regression.base.SemiParametricRegressor(regressor, features, transform, update='composition')[source]

Bases: Regressor

Fitter of Semi-Parametric Regressor.

Parameters:

regressor: function/closure :

The regressor to be used from menpo.fit.regression.regressionfunctions.py.

features: :

The features used to regress.

get_parameters(shape)[source]

Method that makes sure that the parameter passed to the fit method is the model parameters.

Parameters:

shape : PointCloud

The current shape.

update(delta_p, initial_shape)[source]

Updates the parameters of the shape model.

Parameters:

delta_p : ndarray

The parameters increment.

initial_shape : PointCloud

The current shape.

algorithm[source]

Returns the regression type.