chainladder.PatsyFormula

Contents

chainladder.PatsyFormula#

class chainladder.PatsyFormula(formula=None)#

A sklearn-style Transformer for patsy formulas.

PatsyFormula allows for R-style formula preprocessing of the design_matrix of a machine learning algorithm. It’s particularly useful with the DevelopmentML and TweedieGLM estimators.

Parameters:
formula: str

A string representation of the regression model X features.

Attributes:
design_info_:

The patsy instructions for generating the design_matrix, X.

Methods

fit_transform(X[, y])

Fit to data, then transform it.

get_metadata_routing()

Get metadata routing of this object.

get_params([deep])

Get parameters for this estimator.

set_fit_request(*[, sample_weight])

Request metadata passed to the fit method.

set_output(*[, transform])

Set output container.

set_params(**params)

Set the parameters of this estimator.

fit

transform