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