Skip to content

Commit b0ee77f

Browse files
fix broken links in jupyter notebooks (#2033)
1 parent fb0ed4d commit b0ee77f

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

examples/generative/ipynb/gpt2_text_generation_with_keras_hub.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"KerasHub provides a number of pre-trained models, such as [Google\n",
151151
"Bert](https://ai.googleblog.com/2018/11/open-sourcing-bert-state-of-art-pre.html)\n",
152152
"and [GPT-2](https://openai.com/research/better-language-models). You can see\n",
153-
"the list of models available in the [KerasHub repository](https://github.com/keras-team/keras-hub/tree/master/keras_hub/models).\n",
153+
"the list of models available in the [KerasHub repository](https://github.com/keras-team/keras-hub/tree/master/keras_hub/src/models).\n",
154154
"\n",
155155
"It's very easy to load the GPT-2 model as you can see below:"
156156
]
@@ -257,7 +257,7 @@
257257
"with for GPT2.\n",
258258
"\n",
259259
"The code of GPT2 can be found\n",
260-
"[here](https://github.com/keras-team/keras-hub/blob/master/keras_hub/models/gpt2/).\n",
260+
"[here](https://github.com/keras-team/keras-hub/tree/master/keras_hub/src/models/gpt2).\n",
261261
"Conceptually the `GPT2CausalLM` can be hierarchically broken down into several\n",
262262
"modules in KerasHub, all of which have a *from_preset()* function that loads a\n",
263263
"pretrained model:\n",
@@ -478,7 +478,7 @@
478478
},
479479
"source": [
480480
"For more details on KerasHub `Sampler` class, you can check the code\n",
481-
"[here](https://github.com/keras-team/keras-hub/tree/master/keras_hub/samplers)."
481+
"[here](https://github.com/keras-team/keras-hub/tree/master/keras_hub/src/samplers)."
482482
]
483483
},
484484
{

guides/ipynb/keras_cv/coco_metrics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"\n",
5959
"Utility functions to manipulate bounding boxes, transform between formats, and\n",
6060
"pad bounding box Tensors with `-1s` are available from the\n",
61-
"[`keras_cv.bounding_box`](https://github.com/keras-team/keras-cv/blob/master/keras_cv/bounding_box)\n",
61+
"[`keras_cv.bounding_box`](https://github.com/keras-team/keras-cv/tree/master/keras_cv/src/bounding_box)\n",
6262
"package."
6363
]
6464
},

guides/ipynb/keras_tuner/custom_tuner.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"In this guide, we will subclass the `HyperModel` class and write a custom\n",
5151
"training loop by overriding `HyperModel.fit()`. For how to write a custom\n",
5252
"training loop with Keras, you can refer to the guide\n",
53-
"[Writing a training loop from scratch](https://keras.io/guides/writing_a_training_loop_from_scratch/).\n",
53+
"[Writing a training loop from scratch](https://keras.io/guides/writing_a_custom_training_loop_in_tensorflow/).\n",
5454
"\n",
5555
"First, we import the libraries we need, and we create datasets for training and\n",
5656
"validation. Here, we just use some random data for demonstration purposes."
@@ -215,8 +215,7 @@
215215
" best_epoch_loss = min(best_epoch_loss, epoch_loss)\n",
216216
"\n",
217217
" # Return the evaluation metric value.\n",
218-
" return best_epoch_loss\n",
219-
""
218+
" return best_epoch_loss\n"
220219
]
221220
},
222221
{
@@ -247,8 +246,7 @@
247246
" directory=\"results\",\n",
248247
" project_name=\"custom_training\",\n",
249248
" overwrite=True,\n",
250-
")\n",
251-
""
249+
")\n"
252250
]
253251
},
254252
{
@@ -341,4 +339,4 @@
341339
},
342340
"nbformat": 4,
343341
"nbformat_minor": 0
344-
}
342+
}

0 commit comments

Comments
 (0)