Skip to content

Commit 3cb649e

Browse files
authored
Keras: Update Wandb imports and model checkpoint file extension (#614)
1 parent 7323cc4 commit 3cb649e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

colabs/intro/Intro_to_Weights_&_Biases_keras.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"import random\n",
161161
"import numpy as np\n",
162162
"import tensorflow as tf\n",
163-
"from wandb.keras import WandbMetricsLogger, WandbModelCheckpoint\n",
163+
"from wandb.integration.keras import WandbMetricsLogger, WandbModelCheckpoint\n",
164164
"\n",
165165
"# Simple Keras Model\n",
166166
"\n",
@@ -209,7 +209,7 @@
209209
" # Add WandbMetricsLogger to log metrics and WandbModelCheckpoint to log model checkpoints\n",
210210
" wandb_callbacks = [\n",
211211
" WandbMetricsLogger(),\n",
212-
" WandbModelCheckpoint(filepath=\"my_model_{epoch:02d}\"),\n",
212+
" WandbModelCheckpoint(filepath=\"my_model_{epoch:02d}.keras\"),\n",
213213
" ]\n",
214214
"\n",
215215
" model.fit(\n",

0 commit comments

Comments
 (0)