accord-net / framework

Machine learning, computer vision, statistics and general scientific computing for .NET
http://accord-framework.net
GNU Lesser General Public License v2.1
4.49k stars 1.99k forks source link

Accord.net 3.8 AdaBoost Learner delegate #1004

Open HamidEbr opened 7 years ago

HamidEbr commented 7 years ago

I'm so happy to Accord.net 3.8 version finally released and of course AdaBoost class had clean Decide and Learn methods. Please give me an example about new AdaBoost class or tell us more about datatype ISupervisedLearning I'd wrote some samples like this but can't understand clearly what is that type or how it works?

Here is this topic in stackoverflow

HamidEbr commented 7 years ago

m_teacher = new AdaBoost() { Learner = (p) => new ThresholdLearning(), MaxIterations = 100, Tolerance = 1e-10 };

cesarsouza commented 7 years ago

Hi @HamidEbr,

Basically almost every supervised learning algorithm in the framework implements the ISupervisedLearning interface. It means you can use any learning with AdaBoost now, such as ID3Learning, support vector machines, and so on.

There are examples on how to use it on its main documentation page. If there is any particular other scenario you would like to see addressed, please let me know.

Regards, Cesar