Hi Andreas,
For the plot to show up in the node results, you need to: (1) save it in jpg, png or gif format, (2) name it with rpt_ prefix, for example rpt_treeplot.png or rpt_treeplot.jpg and (3) save it in dm_nodedir folder (dm_nodedir is a variable available in the node editor pointing to a temporary working folder)
Here is some sample Python code that does this:
# Plot model residuals plt.scatter(pred, pred - dm_inputdf[dm_dec_target]) plt.axhline(y=0, color='r') plt.title('Residual plot') plt.ylabel('Residual') plt.savefig(dm_nodedir + '/rpt_residuals.png') plt.close()
Hope this helps,
Radhikha
... View more