Comments (8)
Can anyone help on this please?
I am trying to save model & then load it.
Tried using the other way of serializing as in the "tests" code, that gives error as
Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'numl.Supervised.NaiveBayes.DecisionTreeModel'.
from numl.
I got it working by saving in file only, instead of database.
"LoadJson" implementation would have been a great help to avoid all this coding.
from numl.
Sorry about that!! Excellent point. I will work on it. Thanks so much for the feedback.
from numl.
Thanks, and this is a great machine learning library, looking forward to see more in it :)
from numl.
Also see 3414fb4 for actual Json save and load code (along with supporting tests). This really needed to be fixed: thanks for the push! It should be up on nuget as build 0.9.15-beta.
from numl.
Hey Seth, after upgrading to "0.9.15-beta", I do not see the method "LoadJson" on model, can you please help?
from numl.
Hi Sujata!
It didn't make sense to put it on an instance of a model so I added it to the JsonReader class as a static method (see: https://github.com/sethjuarez/numl/blob/dev/Src/numl/Serialization/JsonReader.cs#L347-L352).
var dt = JsonReader.ReadJson<DecisionTreeModel>(json);
What do you think about this?
from numl.
Kudos Seth, it's working as expected now,
thanks.
from numl.
Related Issues (20)
- Image Processing? HOT 3
- Docs link is broken. HOT 2
- Guid property HOT 6
- xproj can't load in my VS2015 HOT 6
- GRU example HOT 2
- Please port to .NET Standard HOT 2
- Error "Sequence contains no elements..." HOT 16
- Documentation HOT 3
- Datetime as label to learn - error "Dimensions do not match" HOT 5
- How To Make A Prediction HOT 2
- Difference with Label and StringLabel Attributes HOT 1
- Reccomendatin Problem HOT 1
- Text classification with numl HOT 2
- Predict method allows bonehead null-reference bug HOT 1
- How to load saved models? HOT 2
- Model load issue HOT 3
- [Question] Training on big data HOT 1
- KMeans Cluster Member Proximity to Center
- Linear Regression with NuML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numl.