-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model saving and loading #6
Comments
Any idea when the saving and loading a model will be complete? I have been able to save the model to file, but upon loading the file is when the model does not understand my programs classes. Otherwise this NuGet package has help save much time. |
I will work on it today and next week - sorry for the delay! I have been out of town a whole bunch. Would love some help! |
Your Library is looking awesome, I hope you complete it and the examples and documentation too, in the same style of that Tennis example, for Supervised Learning and Unsupervised learning |
I added serialization to all of the supervised models (and tests for DT's and NaiveBayes). I also added helper methods on the base Model class to simplify adding serialization to models in the future. |
I was able to save a model into a file but I can't seem to figure out how to load it next time application starts. SAVE: LOAD: (not working, throwing NullRefException) |
I'm stuck on the same. |
@PippoAe I saw that recently @sethjuarez committed some code to better support serialization for NaiveBayes. Have you tried with the latest version ? Which generator did you use ? Have you seen this issue, it seems that after loading a model you still need to initialize the Descriptor. |
Hi rold! I'm still using "model.Save(modelPath);" to save the TreeDecisionModel the learner has after learning. To load I now use: This returns me a working model again that I can use .Predict() on. |
Yay!! |
Add ability to save and load models
The text was updated successfully, but these errors were encountered: