tfbook icon indicating copy to clipboard operation
tfbook copied to clipboard

Results 14 tfbook issues
Sort by recently updated
recently updated
newest added

On chapter 10, optimizer=SGD(lr=1e-6, momentum=0.9) breaks the model trainning, making it predict always "nan". Leaving it blank (that defaults to adam optimizer), fix the issue. ``` model.compile(loss="mse") ```

`model.predict_classes()` is depreciated replaced all instances of `predicted = model.predict_classes(token_list)` with: ``` pred_classes = model.predict(token_list, verbose=0) predicted = np.argmax(pred_classes, axis=-1) ``` as per [this stackoverflow ](https://stackoverflow.com/questions/68776790/model-predict-classes-is-deprecated-what-to-use-instead) discussion

Change data_url to https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip

Hello I was working on the horse or human transfer learning section. I am using the datasets for training and validation from the urls you supply. No matter what horse...

The link contained in the reposity chapter 3 gives me "not found", while this is, for me, the one that does it correctly: https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip

In line 2 on the third paragraph from last of tflite-transferlearning.ipynb for chapter 12,range function end index should be 100,not 99. if the end index is 99,the last index will...

I copied your code, but there was an error like this: java.lang.IllegalArgumentException: Input error: 0-th input should have 2 dimensions, but found 1 dimensions

Unable to open sarcasm_glove.ipynb (chapter 7) Unexpected string in JSON at position 5705 when it is opened with VS Code.

Hi Mr Moroney, Purchased your book. When running chap 17 example colab found here: https://github.com/lmoroney/tfbook/blob/master/chapter17/convert_basic.ipynb I get this error message when running the conversion: ---- 2021-11-24 23:22:42.307496: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding...

Recently read chapter 2 and tried the code provided. I am a bit confused about why the model is only fitting 1875 records per epoch while in the book it...