pa-m / sklearn

bits of sklearn ported to Go #golang
MIT License
345 stars 38 forks source link

how to train in python load by golang? #10

Closed iris-qq closed 4 years ago

iris-qq commented 4 years ago

as the title,i want to know,how load pkl file with golang.i train model in python with sklearn,it saved as model.pkl,then how i load it in golang? pls

sbinet commented 4 years ago

one can use this package to read pickle'd data from Go:

but I'd advise to instead save your data in a more "structured" format: the numpy file format comes to mind. there's also a package to read that:

hth

iris-qq commented 4 years ago

thank you,that's what i want.