How to convert an ONNX model back to sklearn model? #5718
Replies: 1 comment
-
Well, I understand now that RandomForestClassifier isn't an incremental model and won't allow to perform online or incremental learning, so re-training from scratch with all data would be the solution, or changing models. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I trained a RandomForestClassifier sklearn model, and then saved it as an onnx model using
skl2onnx.convert_sklearn
.Now, I would like to load the onnx model and convert it back to an sklearn model so that I could fine-tune it on latest data. Is it possible?
I haven't found any documentation or functions to do that. So I've been trying to get the attribute values from the onnx model and assign it to different properties of a RandomForestClassifier object, but I'm having issues creating
Tree_
objects, and I'm hoping there might be a better solution than this.Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions