Skip to content

Instantly share code, notes, and snippets.

@dsblank
Created March 8, 2024 14:09
Show Gist options
  • Save dsblank/347ce829ca4293359822dec47848c920 to your computer and use it in GitHub Desktop.
Save dsblank/347ce829ca4293359822dec47848c920 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "11fea0e0-436d-4704-aebf-a4040fd2cb13",
"metadata": {},
"outputs": [],
"source": [
"from comet_ml import Experiment"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "37ce48d1-edea-41ff-83be-6de5bf82835f",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[1;38;5;214mCOMET WARNING:\u001b[0m As you are running in a Jupyter environment, you will need to call `experiment.end()` when finished to ensure all metrics and code are logged before exiting.\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Couldn't find a Git repository in '/home/dsblank/comet' nor in any parent directory. Set `COMET_GIT_DIRECTORY` if your Git Repository is elsewhere.\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Experiment is live on comet.com https://www.comet.com/dsblank/log-notebook/a411fa97042b4897a782003915265a57\n",
"\n"
]
}
],
"source": [
"experiment = Experiment(project_name=\"log-notebook\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "d1005bf6-ebcc-48ff-909b-f290c17aa400",
"metadata": {},
"outputs": [],
"source": [
"experiment.log_parameters({\"x\": 42, \"y\": 10})"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "db9c8ce9-9571-438e-bcb4-dfc6b875d0c9",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m ---------------------------------------------------------------------------------------\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Comet.ml Experiment Summary\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m ---------------------------------------------------------------------------------------\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Data:\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m display_summary_level : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m url : https://www.comet.com/dsblank/log-notebook/a411fa97042b4897a782003915265a57\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Parameters:\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m x : 42\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m y : 10\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m Uploads:\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m conda-environment-definition : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m conda-info : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m conda-specification : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m environment details : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m filename : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m installed packages : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m notebook : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m os packages : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m source_code : 1\n",
"\u001b[1;38;5;39mCOMET INFO:\u001b[0m \n"
]
}
],
"source": [
"experiment.end()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "91be962c-2fd9-4a79-9bf1-8f612a148d35",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment