issue with Noughts and Crosses

21 views
Skip to first unread message

이상우 / Lee, Sangwoo

unread,
Apr 15, 2025, 6:32:29 PMApr 15
to Machine Learning for Kids
There is an issue with Noughts and Crosses. 

As shown in the log below, the model cannot be downloaded from the cloud.

I am following Noughts and Crosses on a Windows 11 with Python 3.11, using ydf instead of tfdf as per your previous guide (https://groups.google.com/g/mlforkids/c/PZehIxaXV4U/m/3gJe1XahAQAJ).

Although I followed the guide in the PDF, cannot download the trained model at step 35 of the PDF guide. When I check the folder, there are no files.

Even after deleting the folder and trying again, the result is the same. The download fails.

Please help me.
thanks.

=============================

MLforKids : Checking for downloaded model...
 MLforKids : Reusing downloaded model from saved_models\19efded0-15e5-11f0-8781-59d7b9cdc69c
 MLforKids : Loading model...
Traceback (most recent call last):
  ~~~~~~~~~
ValueError: The given model is not a TensorFlow Decision Forests since it is missing a `saved_model.pb` file. Make sure the given directory saved_models\19efded0-15e5-11f0-8781-59d7b9cdc69c refers to the full TensorFlow Decision Forest model (not just one of its subdirectories).

Dale Lane

unread,
Apr 15, 2025, 7:55:26 PMApr 15
to Machine Learning for Kids
I'm not sure what problem you are facing but the error message suggests you are still using TFDF. 

I've updated the sample code (see here for the updates) and the PDF guide (see here for the latest version) to use YDF - hopefully you can use these to correct your code.

I don't have a Windows computer to test this on, so I can't say with 100% certainty that this will work on Windows, but I can't see any reason why it wouldn't work. 

Kind regards

D

Reply all
Reply to author
Forward
0 new messages