Re: [Java-ML-support] How to save a model file for later use
Status: Beta
Brought to you by:
thomasabeel
From: Thomas A. <ta...@br...> - 2013-08-10 15:20:53
|
You can simply serialize the classifier object after buildClassifier and it will retain it's state. Just deserialize it back when you need it. cheers, Thomas On 8/10/2013 1:41 AM, Ritesh wrote: > H > i, > > I was wondering if there is some way to save something like a model > file on the disk after we build a classifier from a dataset. The API > documentation lists the methods "buildClassifier" which basically trains > and builds any classifier and "classify" which classifies an instance > using this classifier. So effectively it means I have to build a > classifier every time I want to classify some instances which takes up > lot of resource. Is there a way to save the classifier after > "buildClassifier" which could be loaded into the memory any time we want > to classify some instance? > > Regards, > > Ritesh > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Java-ml-support mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-ml-support > |