The demo shows how to use the Tensorflow.js decision forests package to run a converted model.
-
Create a Python TensorFlow Decision Forests model.
-
Save the model (will be exported as a SavedModel).
-
Run the model through the tensorflowjs_converter.
$ tensorflowjs_converter /path/to/saved_model /path/to/tfjs_model
- Use the tfjs-tfdf library to run the converted model in the web.
The demo in the index.html file is based on the SimpleML for Sheets tutorial and shows how to predict the species of a penguin based on other information about it.