forum.alglib.net

ALGLIB forum
It is currently Sun Aug 14, 2022 3:04 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Saving trained classifier
PostPosted: Fri Feb 11, 2011 12:36 am 
Offline

Joined: Fri Feb 11, 2011 12:31 am
Posts: 5
Hi, I really like Alglib and I enjoy using its many functions. One of the things I'm looking into is saving a trained classifier. I use the random forest classifier quite extensively. However, the one thing I do not like about it is the required training time which is much longer than the classification time in my application. I was wondering if it is possible to somehow save the trained classifier to disk so I could just load it straight into memory and start classifying. I'd appreciate any tips you could give me.

Thanks Mr. Bochkanov for your wonderful library....


Top
 Profile  
 
 Post subject: Re: Saving trained classifier
PostPosted: Mon Feb 14, 2011 1:38 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 878
It can be problematic - as of 3.2, ALGLIB doesn't support serialization of complex data structures. Serialization was planned for a 3.3, but I suspect that it will wait for 3.4 at best.


Top
 Profile  
 
 Post subject: Re: Saving trained classifier
PostPosted: Sun Feb 20, 2011 8:52 pm 
Offline

Joined: Sun Feb 20, 2011 8:12 pm
Posts: 1
Hi.
In my application I use the neural network from C# and I have to store a trained networks. I did a copy of the alglib mlpbase.multilayerperceptron (with litle changes). Then I marked all fields with xml serialization attributes. And now I can serialize my network and store it in the any type of storage.
Before using this lib you should create a good adapter I think.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group