1 |
4977ce53
|
Roman Kalivoda
|
//
|
2 |
|
|
// Author: Roman Kalivoda
|
3 |
|
|
//
|
4 |
|
|
|
5 |
|
|
using System;
|
6 |
9fc5fa93
|
Roman Kalivoda
|
using Microsoft.ML.Data;
|
7 |
|
|
|
8 |
|
|
namespace ServerApp.Predictor
|
9 |
|
|
{
|
10 |
4977ce53
|
Roman Kalivoda
|
/// <summary>
|
11 |
|
|
/// An output class of the ML.NET classifier model.
|
12 |
|
|
/// </summary>
|
13 |
9fc5fa93
|
Roman Kalivoda
|
public class ModelOutput
|
14 |
|
|
{
|
15 |
4977ce53
|
Roman Kalivoda
|
/// <summary>
|
16 |
|
|
/// A predicted class.
|
17 |
|
|
/// </summary>
|
18 |
66c3e0df
|
Roman Kalivoda
|
[ColumnName("prediction")]
|
19 |
9fc5fa93
|
Roman Kalivoda
|
public String Prediction { get; set; }
|
20 |
4977ce53
|
Roman Kalivoda
|
|
21 |
|
|
/// <summary>
|
22 |
|
|
/// The score of prediction probability into individual classes.
|
23 |
|
|
/// </summary>
|
24 |
9fc5fa93
|
Roman Kalivoda
|
public float[] Score { get; set; }
|
25 |
|
|
|
26 |
|
|
}
|
27 |
|
|
}
|