forum.alglib.net

ALGLIB forum
It is currently Fri Dec 02, 2022 6:51 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: Question about random forest model
PostPosted: Sun Jul 03, 2022 7:07 am 
Offline

Joined: Sun Jul 03, 2022 7:03 am
Posts: 2
Hello,

I am evaluating ALGLIB to be used inside one of my commercial software programs in order to offer my users an easy way to use random forest models for their data. It looks ok so far but I was not able to find a way to "save" the trained model so that it can be loaded and used again. Is this possible?

Thank you all for your time!

Regards

John


Top
 Profile  
 
 Post subject: Re: Question about random forest model
PostPosted: Sun Jul 03, 2022 8:48 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 880
Hi!

It can be performed with dfserialize()/dfunserialize() pair of functions. Random forest can be serialized to string or stream. The data are written using compressed text format, i.e. you can write it to text or XML file, change EOL between Windows and Unix style, and it will work. It is also possible to move models between C++ and C# versions of the library (e.g. train in C++ and use in C#).

Sergey


Top
 Profile  
 
 Post subject: Re: Question about random forest model
PostPosted: Sun Jul 03, 2022 10:03 am 
Offline

Joined: Sun Jul 03, 2022 7:03 am
Posts: 2
That is great! I will proceed with purchasing the commercial version :)


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