running jupyter on anaconda mac/m2
after fitting the training data
rf = tfdf.keras.RandomForestModel(task = tfdf.keras.Task.REGRESSION)
rf.compile(metrics=["mse"])
rf.fit(x=train_ds)
i want to vizualise the model with the following code, but nothing is displayed
tfdf.model_plotter.plot_model_in_colab(rf, tree_idx=0, max_depth=3)
can i please have a suggestion or recommendation about what to do?
yep!(i tried chatgpt) it wrote the same code several times or a variation and still nothing.
according to chatgpt i have all the dependences installed
TF-DF author here.
Unfortunately, interactive plotting with TF-DF only works in Colab, not in IPython, since the two have slightly different Javascript integrations. Currently, you have two options:
If you want beautiful visualizations with lots of options and lots of information, you can use dtreeviz. There is a tutorial on the TensorFlow website that explains in detail how to use it with TF-DF
Extract the HTML that TF-DF produces yourself and use it in a compatible viewer: