Skip to content

Commit

Permalink
Use new comet_ml.login instead of comet_ml.init
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothiraldan committed Jul 8, 2024
1 parent 5c79886 commit 6c0dbaa
Show file tree
Hide file tree
Showing 80 changed files with 2,773 additions and 2,806 deletions.
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
}
4 changes: 2 additions & 2 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 @@ -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
4 changes: 2 additions & 2 deletions guides/get-started/Comet_Quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,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 @@ -98,7 +98,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

0 comments on commit 6c0dbaa

Please sign in to comment.