You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ from vetiver import mock, VetiverModel
46
46
X, y = mock.get_mock_data()
47
47
model = mock.get_mock_model().fit(X, y)
48
48
49
-
v = VetiverModel(model, save_ptype=True, ptype_data=X, model_name='mock_model')
49
+
v = VetiverModel(model, model_name='mock_model', prototype_data=X)
50
50
```
51
51
52
52
You can **version** and **share** your `VetiverModel()` by choosing a [pins](https://rstudio.github.io/pins-python/) "board" for it, including a local folder, RStudio Connect, Amazon S3, and more.
@@ -63,7 +63,7 @@ You can **deploy** your pinned `VetiverModel()` using `VetiverAPI()`, an extensi
63
63
64
64
```python
65
65
from vetiver import VetiverAPI
66
-
app = VetiverAPI(v, check_ptype=True)
66
+
app = VetiverAPI(v, check_prototype=True)
67
67
```
68
68
69
69
To start a server using this object, use `app.run(port = 8080)` or your port of choice.
0 commit comments