Skip to content

Commit

Permalink
Couple more changes to slide deck 4
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Aug 25, 2023
1 parent 52a048c commit f493178
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions slides/04-monitor.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ inspections_new <- read_parquet(path)
```{python}
import pandas as pd
inspections_new = pd.read_parquet('../data/inspections_monitoring.parquet')
inspections_new['inspection_date'] = pd.to_datetime(inspections_new['inspection_date'])
inspections_new['month'] = inspections_new['inspection_date'].dt.month
inspections_new['year'] = inspections_new['inspection_date'].dt.year
```

## Data for model monitoring
Expand Down Expand Up @@ -167,7 +164,7 @@ library(countdown)
countdown(minutes = 5)
```

## Learn more about model monitoring tomorrow
# Learn more about model monitoring tomorrow 🚀

Come hear Julia's talk on reliable maintenance of ML models on Tues, Sept 19 at 1:50pm!

Expand Down Expand Up @@ -257,6 +254,10 @@ from vetiver import vetiver_endpoint, predict, compute_metrics, plot_metrics
from sklearn.metrics import recall_score, accuracy_score
from datetime import timedelta
inspections_new['inspection_date'] = pd.to_datetime(inspections_new['inspection_date'])
inspections_new['month'] = inspections_new['inspection_date'].dt.month
inspections_new['year'] = inspections_new['inspection_date'].dt.year
url = "https://colorado.posit.co/rsc/chicago-inspections-python/predict"
endpoint = vetiver_endpoint(url)
inspections_new["preds"] = predict(endpoint = url, data = inspections_new.drop(columns = ["results", "aka_name", "inspection_date"]))
Expand Down

0 comments on commit f493178

Please sign in to comment.