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

Update examples after comet_ml.init has been renamed to comet_ml.login #185

Merged
merged 6 commits into from
Jul 8, 2024
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
66 changes: 33 additions & 33 deletions guides/advanced/Running_Offline_Experiments.ipynb
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
Expand All @@ -25,14 +11,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "wMWufCyZbZOx"
},
"outputs": [],
"source": [
"!pip install comet_ml --quiet"
],
"execution_count": null,
"outputs": []
"%pip install -U \"comet_ml>=3.44.0\""
]
},
{
"cell_type": "markdown",
Expand All @@ -45,16 +31,16 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "B2s8nND-birg"
},
"outputs": [],
"source": [
"import comet_ml\n",
"\n",
"comet_ml.init(project_name=\"running-offline\")"
],
"execution_count": null,
"outputs": []
"comet_ml.login(project_name=\"running-offline\")"
]
},
{
"cell_type": "markdown",
Expand All @@ -67,16 +53,16 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "o7UtgSB-bk6K"
},
"outputs": [],
"source": [
"experiment = comet_ml.OfflineExperiment()\n",
"experiment.log_metrics({\"accuracy\": 0.5, \"loss\": 0.001})\n",
"experiment.end()"
],
"execution_count": null,
"outputs": []
]
},
{
"cell_type": "markdown",
Expand All @@ -98,23 +84,37 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "uo53wkSabrnW"
},
"outputs": [],
"source": [
"!comet upload /content/.cometml-runs/*.zip"
],
"execution_count": null,
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "lxMv2erXgLtD"
},
"source": [],
"execution_count": null,
"outputs": []
"outputs": [],
"source": []
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
]
}
},
"nbformat": 4,
"nbformat_minor": 0
}
6 changes: 3 additions & 3 deletions guides/computer_vision/Computer_Vision_with_Comet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"%pip install comet_ml torch torchvision timm datasets h5py scipy scikit-learn \"pandas<2\" \"numpy<2\""
"%pip install -U \"comet_ml>=3.44.0\" torch torchvision timm datasets h5py scipy scikit-learn \"pandas<2\" \"numpy<2\""
]
},
{
Expand All @@ -71,7 +71,7 @@
"id": "yV8haaSzUvOz"
},
"source": [
"# 💥 Initialize Comet and create an Experiment\n",
"# 💥 Login to Comet and create an Experiment\n",
"\n",
"Create your free account Comet Account [here](https://www.comet.com/signup?utm_source=website&utm_medium=referral&utm_campaign=Online_CV_2023&utm_content=colab-notebook) and grab your API Key from the account settings page. "
]
Expand All @@ -86,7 +86,7 @@
"source": [
"import comet_ml\n",
"\n",
"comet_ml.init(project_name=\"comet-example-pytorch-image-classification-svhn\")\n",
"comet_ml.login(project_name=\"comet-example-pytorch-image-classification-svhn\")\n",
"\n",
"# Create the Comet Experiment for logging\n",
"experiment = comet_ml.Experiment()"
Expand Down
10 changes: 4 additions & 6 deletions guides/get-started/Comet_Quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
"source": [
"In this guide we will cover some of the basic features for logging data to Comet. \n",
"\n",
"For a preview of what's possible with Comet, head over to one of our example projects on [Video Classification](If you'd like to take a look at a full project, click the link below:\n",
"\n",
"[Comet Video Classification](https://www.comet.com/maracomet/demo-video-classification/view/5jQkOgv2xebriYq8gdieVtMFy/panels?utm_medium=referral&utm_source=comet_notebook&utm_term=introduction_to_comet)\n",
"If you'd like to take a look at a full project, click on the following link: [Comet Video Classification](https://www.comet.com/maracomet/demo-video-classification/view/5jQkOgv2xebriYq8gdieVtMFy/panels?utm_medium=referral&utm_source=comet_notebook&utm_term=introduction_to_comet)\n",
"\n"
]
},
Expand All @@ -76,7 +74,7 @@
},
"outputs": [],
"source": [
"%pip install -U comet_ml \"numpy<2.0.0\""
"%pip install -U \"comet_ml>=3.44.0\" \"numpy<2.0.0\""
]
},
{
Expand All @@ -85,7 +83,7 @@
"id": "pNBCl7sHJvz7"
},
"source": [
"# 💥 Initialize Comet and grab your Credentials"
"# 💥 Login to Comet and grab your Credentials"
]
},
{
Expand All @@ -98,7 +96,7 @@
"source": [
"import comet_ml\n",
"\n",
"comet_ml.init(project_name=\"comet-example-intro-to-comet\")"
"comet_ml.login(project_name=\"comet-example-intro-to-comet\")"
]
},
{
Expand Down
Loading
Loading