Revize 9fc5fa93
Přidáno uživatelem Roman Kalivoda před více než 3 roky(ů)
Server/ServerApp/Predictor/ModelInput.cs | ||
---|---|---|
1 |
namespace ServerApp.Predictor |
|
1 |
using Microsoft.ML.Data; |
|
2 |
|
|
3 |
namespace ServerApp.Predictor |
|
2 | 4 |
{ |
3 | 5 |
public class ModelInput |
4 | 6 |
{ |
5 |
protected class DataPoint |
|
6 |
{ |
|
7 |
public uint Label { get; set; } |
|
7 |
[ColumnName("label"), LoadColumn(0)] |
|
8 |
public string LabelCol { get; set; } |
|
9 |
|
|
10 |
|
|
11 |
[ColumnName("temp"), LoadColumn(1)] |
|
12 |
public double Col1 { get; set; } |
|
13 |
|
|
14 |
//[ColumnName("date"), LoadColumn(2)] |
|
15 |
//public string Col2 { get; set; } |
|
8 | 16 |
|
9 |
public float[] Features { get; set; }
|
|
10 |
} |
|
17 |
//[ColumnName("time"), LoadColumn(3)]
|
|
18 |
//public string Col3 { get; set; }
|
|
11 | 19 |
} |
12 | 20 |
} |
Také k dispozici: Unified diff
Draft Predictor
re #8598 @2h