@@ -22,7 +22,7 @@ from sklearn import metrics
2222from vetiver import VetiverModel, compute_metrics, plot_metrics
2323from sklearn.metrics import recall_score, accuracy_score
2424
25- raw = "https://colorado.rstudio.com/rsc "
25+ raw = "https://pub.palm.ptd.posit.it/public "
2626paths = {"chicago-model-python": "chicago-model-python/"}
2727board = pins.board_url(raw, paths, allow_pickle_read=True)
2828v = VetiverModel.from_pin(board, "chicago-model-python")
@@ -35,8 +35,8 @@ days_old = datetime.today() - datetime.strptime(v_meta.created, "%Y%m%dT%H%M%SZ"
3535## add any code you need to import new data and make predictions
3636
3737# import new data to track performance over time
38- raw = "https://colorado.rstudio.com/rsc "
39- paths = {"new-data": "inspections-new-data /"}
38+ raw = "https://pub.palm.ptd.posit.it/public "
39+ paths = {"new-data": "inspections-monitor /"}
4040board = pins.board_url(raw, paths, allow_pickle_read=True)
4141inspections_new = board.pin_read("new-data")
4242
@@ -73,7 +73,7 @@ Model details
7373- This model has the prototype:
7474
7575```
76- `{python} v.prototype.construct().schema().get("properties" )`
76+ `{python} v.prototype.model_json_schema( )`
7777```
7878
7979- The model was created by ...
@@ -125,8 +125,13 @@ Write your own code to make visualizations or tables with the new validation dat
125125## Column
126126
127127``` {python}
128+ # For your own model, you can use
129+ # the following code with your URL
130+ # to display your model API's visual documentation
131+
128132from IPython.display import IFrame
129- IFrame('https://colorado.posit.co/rsc/chicago-inspections-python', width=750, height=350)
133+ url = "your-model-api-url"
134+ IFrame(url, width=750, height=350)
130135```
131136---
132137
0 commit comments