Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: simplify notebooks #498

Merged
merged 3 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/python-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- "src/**"
- "tests/**"
- "tutorials/**"
- "pyproject.toml"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion tutorials/example_datasets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"metadata": {},
"outputs": [],
"source": [
"px.load_example?"
"?px.load_example"
]
},
{
Expand Down
35 changes: 4 additions & 31 deletions tutorials/image_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,38 +156,11 @@
"display_examples(train_df.head())"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "0BIeGAemfziv"
},
"source": [
"## 3. Prepare the Data\n",
"\n",
"The original data is from April 2022. Update the timestamps to the current time."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "xzYoV-hemYsE"
},
"outputs": [],
"source": [
"latest_timestamp = max(prod_df[\"prediction_ts\"])\n",
"current_timestamp = datetime.timestamp(datetime.now())\n",
"delta = current_timestamp - latest_timestamp\n",
"\n",
"train_df[\"prediction_ts\"] = (train_df[\"prediction_ts\"] + delta).astype(float)\n",
"prod_df[\"prediction_ts\"] = (prod_df[\"prediction_ts\"] + delta).astype(float)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 4. Launch Phoenix\n",
"## 3. Launch Phoenix\n",
"\n",
"### a) Define Your Schema\n",
"To launch Phoenix with your data, you first need to define a schema that tells Phoenix which columns of your DataFrames correspond to features, predictions, actuals (i.e., ground truth), embeddings, etc.\n",
Expand Down Expand Up @@ -306,7 +279,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5. Find and Export Problematic Clusters\n",
"## 4. Find and Export Problematic Clusters\n",
"\n",
"### Steps\n",
"\n",
Expand All @@ -330,7 +303,7 @@
"1. It consists almost entirely of production data, meaning that your model is seeing data in production the likes of which it never saw during training.\n",
"1. Your model was trained crisp and high-resolution images. In production, your model is encountering blurry and noisy images that it cannot correctly classify.\n",
"\n",
"## 6. Load and View Exported Data\n",
"## 5. Load and View Exported Data\n",
"\n",
"View your exported files."
]
Expand Down Expand Up @@ -385,7 +358,7 @@
"source": [
"Congrats! You've pinpointed the blurry or noisy images that are hurting your model's performance in production. As an actionable next step, you can label your exported production data and fine-tune your model to improve performance.\n",
"\n",
"## 7. Close the App\n",
"## 6. Close the App\n",
"\n",
"When you're done, don't forget to close the app."
]
Expand Down
2 changes: 1 addition & 1 deletion tutorials/sentiment_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"\n",
"Congrats! You've identified the root cause of your model's performance issue.\n",
"\n",
"## 5. Close the App 🧹\n",
"## 5. Close the App\n",
"\n",
"When you're done, don't forget to close the app."
]
Expand Down