rstudio / vetiver-python

Version, share, deploy, and monitor models.
https://rstudio.github.io/vetiver-python/stable/
MIT License
60 stars 17 forks source link

update `ptype_data` to `prototype_data` #138

Closed isabelizimm closed 1 year ago

isabelizimm commented 1 year ago

in parity with https://github.com/rstudio/vetiver-r/issues/84 and https://github.com/rstudio/vetiver-r/pull/166

This PR deprecates the ptype_data argument in favor of prototype_data.

VetiverModel(model, "my_model", ptype_data = X_train)

Will result in: Deprecation warning: argument for saving input data prototype has changed to save_prototype, from save_ptype

The argument name change is not reflected in functions such as vetiver_create_ptype that are almost exclusively used in programmatic model creation.