library(vetiver)
<- lm(mpg ~ ., data = mtcars)
cars_lm vetiver_model(cars_lm, "cars_linear")
── cars_linear ─ <butchered_lm> model for deployment
An OLS linear regression model using 10 features
The vetiver framework is for MLOps tasks in Python and R.
Vetiver, the oil of tranquility, is used as a stabilizing ingredient in perfumery to preserve more volatile fragrances.
The goal of vetiver is to provide fluent tooling to version, deploy, and monitor a trained model. Functions handle both recording and checking the model’s input data prototype, and predicting from a remote API endpoint.
Use vetiver to version and deploy your trained models.
from vetiver import VetiverModel
from vetiver.data import mtcars
from sklearn import linear_model
model = linear_model.LinearRegression().fit(mtcars, mtcars["mpg"])
v = VetiverModel(model, model_name = "cars_linear",
save_ptype = True, ptype_data = mtcars)
v.description
"Scikit-learn <class 'sklearn.linear_model._base.LinearRegression'> model"