Skip to content

Commit 4865713

Browse files
authored
Update examples after comet_ml.init has been renamed to comet_ml.login (#185)
* Fix Ray+XGBoost example * Temporary use older version of Keras to fix the build * Use new comet_ml.login instead of comet_ml.init * Fix parameter name for comet_llm.init * Use comet-example singular prefix for example project names * Update section name when login to Comet
1 parent 8149415 commit 4865713

File tree

83 files changed

+2814
-2848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2814
-2848
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
{
2-
"nbformat": 4,
3-
"nbformat_minor": 0,
4-
"metadata": {
5-
"colab": {
6-
"provenance": []
7-
},
8-
"kernelspec": {
9-
"name": "python3",
10-
"display_name": "Python 3"
11-
},
12-
"language_info": {
13-
"name": "python"
14-
}
15-
},
162
"cells": [
173
{
184
"cell_type": "markdown",
@@ -25,14 +11,14 @@
2511
},
2612
{
2713
"cell_type": "code",
14+
"execution_count": null,
2815
"metadata": {
2916
"id": "wMWufCyZbZOx"
3017
},
18+
"outputs": [],
3119
"source": [
32-
"!pip install comet_ml --quiet"
33-
],
34-
"execution_count": null,
35-
"outputs": []
20+
"%pip install -U \"comet_ml>=3.44.0\""
21+
]
3622
},
3723
{
3824
"cell_type": "markdown",
@@ -45,16 +31,16 @@
4531
},
4632
{
4733
"cell_type": "code",
34+
"execution_count": null,
4835
"metadata": {
4936
"id": "B2s8nND-birg"
5037
},
38+
"outputs": [],
5139
"source": [
5240
"import comet_ml\n",
5341
"\n",
54-
"comet_ml.init(project_name=\"running-offline\")"
55-
],
56-
"execution_count": null,
57-
"outputs": []
42+
"comet_ml.login(project_name=\"running-offline\")"
43+
]
5844
},
5945
{
6046
"cell_type": "markdown",
@@ -67,16 +53,16 @@
6753
},
6854
{
6955
"cell_type": "code",
56+
"execution_count": null,
7057
"metadata": {
7158
"id": "o7UtgSB-bk6K"
7259
},
60+
"outputs": [],
7361
"source": [
7462
"experiment = comet_ml.OfflineExperiment()\n",
7563
"experiment.log_metrics({\"accuracy\": 0.5, \"loss\": 0.001})\n",
7664
"experiment.end()"
77-
],
78-
"execution_count": null,
79-
"outputs": []
65+
]
8066
},
8167
{
8268
"cell_type": "markdown",
@@ -98,23 +84,37 @@
9884
},
9985
{
10086
"cell_type": "code",
87+
"execution_count": null,
10188
"metadata": {
10289
"id": "uo53wkSabrnW"
10390
},
91+
"outputs": [],
10492
"source": [
10593
"!comet upload /content/.cometml-runs/*.zip"
106-
],
107-
"execution_count": null,
108-
"outputs": []
94+
]
10995
},
11096
{
11197
"cell_type": "code",
98+
"execution_count": null,
11299
"metadata": {
113100
"id": "lxMv2erXgLtD"
114101
},
115-
"source": [],
116-
"execution_count": null,
117-
"outputs": []
102+
"outputs": [],
103+
"source": []
104+
}
105+
],
106+
"metadata": {
107+
"colab": {
108+
"provenance": []
109+
},
110+
"kernelspec": {
111+
"display_name": "Python 3",
112+
"name": "python3"
113+
},
114+
"language_info": {
115+
"name": "python"
118116
}
119-
]
120-
}
117+
},
118+
"nbformat": 4,
119+
"nbformat_minor": 0
120+
}

guides/computer_vision/Computer_Vision_with_Comet.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"outputs": [],
6363
"source": [
64-
"%pip install comet_ml torch torchvision timm datasets h5py scipy scikit-learn \"pandas<2\" \"numpy<2\""
64+
"%pip install -U \"comet_ml>=3.44.0\" torch torchvision timm datasets h5py scipy scikit-learn \"pandas<2\" \"numpy<2\""
6565
]
6666
},
6767
{
@@ -71,7 +71,7 @@
7171
"id": "yV8haaSzUvOz"
7272
},
7373
"source": [
74-
"# 💥 Initialize Comet and create an Experiment\n",
74+
"# 💥 Login to Comet and create an Experiment\n",
7575
"\n",
7676
"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. "
7777
]
@@ -86,7 +86,7 @@
8686
"source": [
8787
"import comet_ml\n",
8888
"\n",
89-
"comet_ml.init(project_name=\"comet-example-pytorch-image-classification-svhn\")\n",
89+
"comet_ml.login(project_name=\"comet-example-pytorch-image-classification-svhn\")\n",
9090
"\n",
9191
"# Create the Comet Experiment for logging\n",
9292
"experiment = comet_ml.Experiment()"

guides/get-started/Comet_Quickstart.ipynb

+4-6
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353
"source": [
5454
"In this guide we will cover some of the basic features for logging data to Comet. \n",
5555
"\n",
56-
"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",
57-
"\n",
58-
"[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",
56+
"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",
5957
"\n"
6058
]
6159
},
@@ -76,7 +74,7 @@
7674
},
7775
"outputs": [],
7876
"source": [
79-
"%pip install -U comet_ml \"numpy<2.0.0\""
77+
"%pip install -U \"comet_ml>=3.44.0\" \"numpy<2.0.0\""
8078
]
8179
},
8280
{
@@ -85,7 +83,7 @@
8583
"id": "pNBCl7sHJvz7"
8684
},
8785
"source": [
88-
"# 💥 Initialize Comet and grab your Credentials"
86+
"# 💥 Login to Comet and grab your Credentials"
8987
]
9088
},
9189
{
@@ -98,7 +96,7 @@
9896
"source": [
9997
"import comet_ml\n",
10098
"\n",
101-
"comet_ml.init(project_name=\"comet-example-intro-to-comet\")"
99+
"comet_ml.login(project_name=\"comet-example-intro-to-comet\")"
102100
]
103101
},
104102
{

0 commit comments

Comments
 (0)