Skip to content
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
7 changes: 4 additions & 3 deletions docs/mlflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
},
"outputs": [],
"source": [
"import lamindb as ln\n",
"import lightning as pl\n",
"import lamindb as ln\n",
"from lamindb.integrations import lightning as ll\n",
"import mlflow\n",
"from pathlib import Path\n",
"\n",
Expand Down Expand Up @@ -286,8 +287,8 @@
" autoencoder = LitAutoEncoder(hidden_size=32, bottleneck_size=16)\n",
"\n",
" # Create a LaminDB LightningCallback which also (optionally) annotates checkpoints by desired metrics\n",
" lamindb_callback = ln.integrations.lightning.Callback(\n",
" path=Path(\"model_checkpoints\") / \"{mlflow_run.info.run_id}_last_epoch.ckpt\",\n",
" lamindb_callback = ll.Callback(\n",
" path=Path(\"model_checkpoints\") / f\"{mlflow_run.info.run_id}_last_epoch.ckpt\",\n",
" key=f\"testmodels/mlflow/{mlflow_run.info.run_id}.ckpt\",\n",
" features={\n",
" \"mlflow_run_id\": mlflow_run.info.run_id,\n",
Expand Down
7 changes: 4 additions & 3 deletions docs/wandb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
},
"outputs": [],
"source": [
"import lightning as pl\n",
"import lamindb as ln\n",
"from lamindb.integrations import lightning as ll\n",
"import wandb\n",
"import lightning as pl\n",
"from pathlib import Path\n",
"\n",
"from torch import utils\n",
Expand Down Expand Up @@ -276,8 +277,8 @@
"source": [
"# Create a LaminDB LightningCallback which also (optionally) annotates checkpoints by desired metrics\n",
"wandb_logger.experiment.id\n",
"lamindb_callback = ln.integrations.lightning.Callback(\n",
" path=Path(\"model_checkpoints\") / \"{wanddblogger.version}_last_epoch.ckpt\",\n",
"lamindb_callback = ll.Callback(\n",
" path=Path(\"model_checkpoints\") / f\"{wandb_logger.version}_last_epoch.ckpt\",\n",
" key=f\"testmodels/wandb/{wandb_logger.experiment.id}.ckpt\",\n",
" features={\n",
" \"wandb_run_id\": wandb_logger.experiment.id,\n",
Expand Down