-
Notifications
You must be signed in to change notification settings - Fork 0
/
MLModel1.consumption.cs
70 lines (52 loc) · 1.83 KB
/
MLModel1.consumption.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// This file was auto-generated by ML.NET Model Builder.
using Microsoft.ML.Data;
namespace NativeMLAOT
{
/// <summary>
/// model input class for MLModel1.
/// </summary>
public class ModelInput
{
[ColumnName(@"age")]
public float Age { get; set; }
[ColumnName(@"workclass")]
public string Workclass { get; set; }
[ColumnName(@"fnlwgt")]
public float Fnlwgt { get; set; }
[ColumnName(@"education")]
public string Education { get; set; }
[ColumnName(@"education-num")]
public float Education_num { get; set; }
[ColumnName(@"marital-status")]
public string Marital_status { get; set; }
[ColumnName(@"occupation")]
public string Occupation { get; set; }
[ColumnName(@"relationship")]
public string Relationship { get; set; }
[ColumnName(@"ethnicity")]
public string Ethnicity { get; set; }
[ColumnName(@"sex")]
public string Sex { get; set; }
[ColumnName(@"capital-gain")]
public float Capital_gain { get; set; }
[ColumnName(@"capital-loss")]
public float Capital_loss { get; set; }
[ColumnName(@"hours-per-week")]
public float Hours_per_week { get; set; }
[ColumnName(@"native-country")]
public string Native_country { get; set; }
[ColumnName(@"label(IsOver50K)")]
public bool Label_IsOver50K_ { get; set; }
}
/// <summary>
/// model output class for MLModel1.
/// </summary>
public class ModelOutput
{
[ColumnName("PredictedLabel")]
public bool Prediction { get; set; }
public float Score { get; set; }
// The probability calculated by calibrating the score of having true as the label.
public float Probability { get; set; }
}
}