-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClassifierValidation.cs
47 lines (39 loc) · 1.11 KB
/
ClassifierValidation.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Grammophone.EnnounInference
{
/// <summary>
/// Information about a classifier and its validation performance.
/// </summary>
/// <typeparam name="C">The type of the classifier.</typeparam>
/// <typeparam name="O">The type of the options used for training the classifier.</typeparam>
public class ClassifierValidation<C, O>
{
#region Construction
/// <summary>
/// Create.
/// </summary>
/// <param name="classifier">The classifier.</param>
/// <param name="fit">The validation fitness.</param>
public ClassifierValidation(C classifier, Fit<O> fit)
{
if (classifier == null) throw new ArgumentNullException("classifier");
if (fit == null) throw new ArgumentNullException("fit");
this.Classifier = classifier;
this.Fit = fit;
}
#endregion
#region Public properties
/// <summary>
/// The classifier.
/// </summary>
public C Classifier { get; private set; }
/// <summary>
/// The validation fitness.
/// </summary>
public Fit<O> Fit { get; private set; }
#endregion
}
}