cstjean / ScikitLearn.jl

Julia implementation of the scikit-learn API https://cstjean.github.io/ScikitLearn.jl/dev/
Other
547 stars 75 forks source link

Error Saving a ScikitLearn Model #127

Open klauscj68 opened 1 year ago

klauscj68 commented 1 year ago

Hi I'm running into an error saving a scikitlearn model. I posted the issue to the Julia discourse here https://discourse.julialang.org/t/error-saving-scikitlearn-jl-pipeline/99614 . I am trying to follow the pattern at https://scikitlearnjl.readthedocs.io/en/latest/quickstart/ for saving a model. My worry is that PyCallJLD may be incompatible with a sufficiently updated version of JLD?

Thanks for any help!

AP6YC commented 1 year ago

I'm having the same issue; the example at https://cstjean.github.io/ScikitLearn.jl/stable/man/jld/ doesn't work with the following error:

LoadError: type DataType has no field size

I too suspect that there is some kind of a change at the patch level (I have a package that pinned ScikitLearn and others at the minor level), but I can't quite figure out what the error means let alone which package is to blame.

cstjean commented 1 year ago

My worry is that PyCallJLD may be incompatible with a sufficiently updated version of JLD?

That's entirely possible. Unfortunately, I do not have time to look into this issue, but any PR is appreciated PyCallJLD is a tiny package, so it really shouldn't be that hard.