Projekt

Obecné

Profil

Stáhnout (1.36 KB) Statistiky
| Větev: | Tag: | Revize:
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 ce0940b5 Roman Kalivoda
        /// <summary>
17
        /// Start time of the information.
18
        /// </summary>
19
        public DateTime Time { get; set; }
20
21 4977ce53 Roman Kalivoda
        /// <summary>
22
        /// A label of this training input.
23
        /// </summary>
24 66c3e0df Roman Kalivoda
        [ColumnName("Label"), LoadColumn(0)]
25
        public string Label { get; set; }
26 9fc5fa93 Roman Kalivoda
27 4977ce53 Roman Kalivoda
        /// <summary>
28
        /// Temperature at the site.
29
        /// </summary>
30 ebe96ca4 Roman Kalivoda
        [ColumnName("Temp"), LoadColumn(1)]
31 66c3e0df Roman Kalivoda
        public float Temp { get; set; }
32 9fc5fa93 Roman Kalivoda
33 ebe96ca4 Roman Kalivoda
        /// <summary>
34 ce0940b5 Roman Kalivoda
        /// Hour of the predicted turnout.
35 ebe96ca4 Roman Kalivoda
        /// </summary>
36 ce0940b5 Roman Kalivoda
        [ColumnName("Hour"), LoadColumn(2)]
37
        public int Hour { get; set; }
38 662b2404 Roman Kalivoda
39
        /// <summary>
40 ce0940b5 Roman Kalivoda
        /// Wind velocity in m/s
41 662b2404 Roman Kalivoda
        /// </summary>
42
        [ColumnName("Wind"), LoadColumn(3)]
43
        public float Wind { get; set; }
44
45
        /// <summary>
46 ce0940b5 Roman Kalivoda
        /// Precipitation in %
47 662b2404 Roman Kalivoda
        /// </summary>
48
        [ColumnName("Rain"), LoadColumn(4)]
49
        public float Rain { get; set; }
50 0d31f7e0 Roman Kalivoda
51
        public override string ToString()
52
        {
53
            return $"ModelInput: {Time}; {Label}; {Temp}, {Hour}, {Wind}, {Rain}";
54
        }
55 abfd9c7c Roman Kalivoda
    }
56 4977ce53 Roman Kalivoda
}