vetiver.StatsmodelsHandler#

class vetiver.StatsmodelsHandler(model, ptype_data)#

Handler class for creating VetiverModels with statsmodels.

Parameters

model (statsmodels) – a trained and fit statsmodels model

__init__(model, ptype_data)#

Methods

__init__(model, ptype_data)

construct_ptype()

Create data prototype for a model

create_meta([version, url, required_pkgs])

Create metadata for statsmodel

describe()

Create description for statsmodels model

handler_predict(input_data, check_ptype)

Generates method for /predict endpoint in VetiverAPI

handler_startup()

Include required packages for prediction

model_class()