Projekt

Obecné

Profil

Stáhnout (1.36 KB) Statistiky
| Větev: | Tag: | Revize:
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
        /// Start time of the information.
18
        /// </summary>
19
        public DateTime Time { get; set; }
20

    
21
        /// <summary>
22
        /// A label of this training input.
23
        /// </summary>
24
        [ColumnName("Label"), LoadColumn(0)]
25
        public string Label { get; set; }
26

    
27
        /// <summary>
28
        /// Temperature at the site.
29
        /// </summary>
30
        [ColumnName("Temp"), LoadColumn(1)]
31
        public float Temp { get; set; }
32

    
33
        /// <summary>
34
        /// Hour of the predicted turnout.
35
        /// </summary>
36
        [ColumnName("Hour"), LoadColumn(2)]
37
        public int Hour { get; set; }
38

    
39
        /// <summary>
40
        /// Wind velocity in m/s
41
        /// </summary>
42
        [ColumnName("Wind"), LoadColumn(3)]
43
        public float Wind { get; set; }
44

    
45
        /// <summary>
46
        /// Precipitation in %
47
        /// </summary>
48
        [ColumnName("Rain"), LoadColumn(4)]
49
        public float Rain { get; set; }
50

    
51
        public override string ToString()
52
        {
53
            return $"ModelInput: {Time}; {Label}; {Temp}, {Hour}, {Wind}, {Rain}";
54
        }
55
    }
56
}
(4-4/8)