Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active June 17, 2019 11:53
Show Gist options
  • Save deeperunderstanding/6e7b13b74e57d507739a564601363a03 to your computer and use it in GitHub Desktop.
Save deeperunderstanding/6e7b13b74e57d507739a564601363a03 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,
"metadata": {},
"outputs": [],
"source": [
"import mlflow"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"mlflow.set_experiment('experiment-alpha')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"with mlflow.start_run():\n",
" mlflow.log_param(\"name\", \"test\")\n",
" mlflow.log_param(\"waether\", \"sunny\")\n",
" mlflow.log_param(\"mood\", \"great\")\n",
" \n",
" for i in range(10):\n",
" mlflow.log_metric(\"i\", i)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment