Open LinusEdelkott opened 5 months ago
What machines did you try it on where it failed and where it succeeded?
Can you provide an exact set of repro steps with a minimal example? The minimal example could use a custom prediction function that returns a number directly from the input example so that we take the actual ML model out of the equation, in terms of what is going wrong.
I just ran a test in colab witih a custom prediction function that logs the calls and it seems to be being called correctly every time the "predict" button is pressed after a datapoint edit.
I stumled upon the quite annoying issue, that predicting via the data-point editor returns non-deterministic results.
I created the widget with a custom_predict_function as there's a sklearn-pipeline around my xgbm model. The creation of the widget works fine, but if I change one datapoint in the widgets editor and click on predict and change it back, it results in seemingly random results.
On a colleague machine (mac) the code worked fine. I tried two different machines but run into the issue both times.
By simply putting a print into the custom_predict function, I could confirm that it is seemingly not used via the data-point-editor predict.