O'Reilly logo

Hands-On Machine Learning with C# by Matt R. Cole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

numl

numl is a very famous open source machine learning toolkit. As with most machine learning frameworks, it too uses the Iris dataset for many of its examples, including the one we will use for decision trees.

Here is an example of our numl output:

Let's take a look at the code behind that example:

static void Main(string[] args){Console.WriteLine("Hello World!");var description = Descriptor.Create<Iris>();Console.WriteLine(description);var generator = new DecisionTreeGenerator();var data = Iris.Load();var model = generator.Generate(description, data);Console.WriteLine("Generated model:");Console.WriteLine(model);Console.ReadKey();}

Definitely ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required