-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
37 lines (32 loc) · 1.21 KB
/
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
30
31
32
33
34
35
36
37
using System;
using LoginAnomalyDetector.ML;
namespace LoginAnomalyDetector
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 2)
{
Console.WriteLine($"Invalid arguments passed in, exiting.{Environment.NewLine}{Environment.NewLine}Usage:{Environment.NewLine}" +
$"predict <path to input file>{Environment.NewLine}" +
$"or {Environment.NewLine}" +
$"train <path to training data file> <path to test data file>{Environment.NewLine}" +
$"or {Environment.NewLine}" + $"extract <path to training folder> <path to test folder>{Environment.NewLine}");
return;
}
switch (args[0])
{
case "predict":
new Predictor().Predict(args[1]);
break;
case "train":
new Trainer().Train(args[1], args[2]);
break;
default:
Console.WriteLine($"{args[0]} is an invalid option");
break;
}
}
}
}