1
|
//
|
2
|
// Author: Roman Kalivoda
|
3
|
//
|
4
|
|
5
|
using System;
|
6
|
using Microsoft.ML.Data;
|
7
|
|
8
|
namespace ServerApp.Predictor
|
9
|
{
|
10
|
|
11
|
/// <summary>
|
12
|
/// A container of input features and label for the ML.NET classification model.
|
13
|
/// </summary>
|
14
|
public class ModelInput
|
15
|
{
|
16
|
/// <summary>
|
17
|
/// A label of this training input.
|
18
|
/// </summary>
|
19
|
[ColumnName("Label"), LoadColumn(0)]
|
20
|
public string Label { get; set; }
|
21
|
|
22
|
/// <summary>
|
23
|
/// Temperature at the site.
|
24
|
/// </summary>
|
25
|
[ColumnName("Temp"), LoadColumn(1)]
|
26
|
public float Temp { get; set; }
|
27
|
|
28
|
/// <summary>
|
29
|
/// Time of the predicted turnout.
|
30
|
/// </summary>
|
31
|
[ColumnName("Time"), LoadColumn(2)]
|
32
|
public DateTime Time { get; set; }
|
33
|
|
34
|
/// <summary>
|
35
|
/// Wind velocity in ? units
|
36
|
/// </summary>
|
37
|
[ColumnName("Wind"), LoadColumn(3)]
|
38
|
public float Wind { get; set; }
|
39
|
|
40
|
/// <summary>
|
41
|
/// Precipitation
|
42
|
/// </summary>
|
43
|
[ColumnName("Rain"), LoadColumn(4)]
|
44
|
public float Rain { get; set; }
|
45
|
}
|
46
|
}
|