I trained a model using GradientBoostedTreesModel and then converted to javascript. I need help creating the input to make the predict call in javascript.
Saved model with the following command:
tensorflowjs_converter
–input_format=tf_saved_model
–output_format=tfjs_graph_model
–signature_name=serving_default
–saved_model_tags=serve
saved_model
web_model
I am able to load the model in a web page with:
const model = await tf.loadGraphModel(‘/web_model/model.json’)
In Python, I create the predict input by converting a pandas dataframe to dataset with tfdf.keras.pd_dataframe_to_tf_dataset. The dataframe has 8 columns. How can I do something similar to do the inference? I really only need to predict one set of inputs.