Skip to content

How to compile, build and start ANNdotNET Tool

Bahrudin Hrnjica edited this page Sep 28, 2018 · 4 revisions

In order to compile and build ANNdotNET solution, the following actions must be performed:

  • Clone solution by typing: git clone https://github.com/bhrnjica/anndotnet in console,
  • Run Visual Studio 2017 and open anndotnet.gui.net.sln solution file,
  • Set anndotnet.tool.net – as startup project,
  • Change system architecture of the solution from Any CPU to x64.
alt text
  • Once the previous actions are performed the Solution window looks like:

Solution Explorer

  • From the Program.cs file select one of several implemented solutions un-comment the code and run the solution. For example un-comment Iris sample which is presented in the following code snippet:
//Iris flower recognition
//Famous multi class classification datset: https://archive.ics.uci.edu/ml/datasets/iris
var mlConfigFile2 = "./model_mlconfigs/iris.mlconfig";
Console.WriteLine(Environment.NewLine);
Console.WriteLine($"****Iris flower recognition****");
Console.WriteLine(Environment.NewLine);
var token2 = new CancellationToken();
var result = MachineLearning.Run(mlConfigFile2, DeviceDescriptor.UseDefaultDevice(), token2, trainingProgress, null);
//evaluate model and export the result of testing
MachineLearning.EvaluateModel(mlConfigFile2, result.BestModelFile, DeviceDescriptor.UseDefaultDevice());
  • Once the project is executed the following output is present: