Serializing SVC #297
Replies: 3 comments 1 reply
-
Thanks for using smartcore 👍 could you provide a use case and a code example of what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
Yes. I'm following the User Guide under "Model persistence" at https://smartcorelib.org/user_guide/model_selection.html In this code I fit the SVC and save it to file for later use. On loading the file, I get error:
` let matrix = from_dataframe_to_dense_matrix(df.clone(), false);
|
Beta Was this translation helpful? Give feedback.
-
It seems this error persists on this branch as well. :( This seems to be relevant:
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
Wonderful library.
I'm trying to do some tests using the SVC.
But the training is slow.
So I'm trying to save the model to re-use it.,
But when deserializing it, I get a parameters unwraps to a None error.
I looked into the implementation and it seems deserialization is skipped for the params and the kernel on wasm32 targets.
I'm testing on non-wasm32 but need to run on wasm32.
Is it possible to save the SVC model?
Thanks!
I really appreciate the hard work you did. Cool project.
Beta Was this translation helpful? Give feedback.
All reactions