-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
29 lines (24 loc) · 844 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using PRFramework.Core.Common;
using PRFramework.Core.IO;
using PRFramework.MigueExperimenter.AnomalyDetection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaggingRandomMinerApp
{
class Program
{
static void Main(string[] args)
{
var traininDataset = CsvLoader.Load(@"C:\1tra.csv", out InstanceModel trModel);
var testingDataset = CsvLoader.Load(@"C:\1tst.csv", out InstanceModel tsModel);
BaggingRandomMiner classifier = new BaggingRandomMiner();
classifier.Train(trModel, traininDataset);
foreach (var obj in testingDataset)
Console.WriteLine(classifier.Classify(obj)[0]);
Console.ReadLine();
}
}
}