File tree 9 files changed +12
-14
lines changed
src/Microsoft.ML.Auto/API
9 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Microsoft . ML . Auto
8
8
{
9
- public class AutoInferenceCatalog
9
+ public sealed class AutoInferenceCatalog
10
10
{
11
11
private readonly MLContext _context ;
12
12
Original file line number Diff line number Diff line change 10
10
11
11
namespace Microsoft . ML . Auto
12
12
{
13
- public class BinaryExperimentSettings : ExperimentSettings
13
+ public sealed class BinaryExperimentSettings : ExperimentSettings
14
14
{
15
15
public IProgress < RunResult < BinaryClassificationMetrics > > ProgressCallback ;
16
16
public BinaryClassificationMetric OptimizingMetric = BinaryClassificationMetric . Accuracy ;
@@ -42,7 +42,7 @@ public enum BinaryClassificationTrainer
42
42
SymbolicStochasticGradientDescent ,
43
43
}
44
44
45
- public class BinaryClassificationExperiment
45
+ public sealed class BinaryClassificationExperiment
46
46
{
47
47
private readonly MLContext _context ;
48
48
private readonly BinaryExperimentSettings _settings ;
Original file line number Diff line number Diff line change 7
7
8
8
namespace Microsoft . ML . Auto
9
9
{
10
- public class ColumnInferenceResults
10
+ public sealed class ColumnInferenceResults
11
11
{
12
12
public TextLoader . Arguments TextLoaderArgs { get ; set ; }
13
13
public ColumnInformation ColumnInformation { get ; set ; }
14
14
}
15
15
16
- public class ColumnInformation
16
+ public sealed class ColumnInformation
17
17
{
18
18
public string LabelColumn = DefaultColumnNames . Label ;
19
19
public string WeightColumn ;
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ namespace Microsoft.ML.Auto
9
9
public class ExperimentSettings
10
10
{
11
11
public uint MaxInferenceTimeInSeconds = 24 * 60 * 60 ;
12
- public bool EnableCaching ;
13
12
public CancellationToken CancellationToken ;
14
13
14
+ internal bool EnableCaching ;
15
15
internal int MaxModels = int . MaxValue ;
16
16
internal IDebugLogger DebugLogger ;
17
17
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public enum InferenceType
13
13
Label ,
14
14
}
15
15
16
- public class InferenceException : Exception
16
+ public sealed class InferenceException : Exception
17
17
{
18
18
public InferenceType InferenceType ;
19
19
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- using System . Threading ;
6
-
7
5
namespace Microsoft . ML . Auto
8
6
{
9
7
public static class MLContextExtension
Original file line number Diff line number Diff line change 10
10
11
11
namespace Microsoft . ML . Auto
12
12
{
13
- public class MulticlassExperimentSettings : ExperimentSettings
13
+ public sealed class MulticlassExperimentSettings : ExperimentSettings
14
14
{
15
15
public IProgress < RunResult < MultiClassClassifierMetrics > > ProgressCallback ;
16
16
public MulticlassClassificationMetric OptimizingMetric = MulticlassClassificationMetric . AccuracyMicro ;
@@ -40,7 +40,7 @@ public enum MulticlassClassificationTrainer
40
40
SymbolicStochasticGradientDescentOVA ,
41
41
}
42
42
43
- public class MulticlassClassificationExperiment
43
+ public sealed class MulticlassClassificationExperiment
44
44
{
45
45
private readonly MLContext _context ;
46
46
private readonly MulticlassExperimentSettings _settings ;
Original file line number Diff line number Diff line change 10
10
11
11
namespace Microsoft . ML . Auto
12
12
{
13
- public class RegressionExperimentSettings : ExperimentSettings
13
+ public sealed class RegressionExperimentSettings : ExperimentSettings
14
14
{
15
15
public IProgress < RunResult < RegressionMetrics > > ProgressCallback ;
16
16
public RegressionMetric OptimizingMetric = RegressionMetric . RSquared ;
@@ -37,7 +37,7 @@ public enum RegressionTrainer
37
37
StochasticDualCoordinateAscent ,
38
38
}
39
39
40
- public class RegressionExperiment
40
+ public sealed class RegressionExperiment
41
41
{
42
42
private readonly MLContext _context ;
43
43
private readonly RegressionExperimentSettings _settings ;
Original file line number Diff line number Diff line change 7
7
8
8
namespace Microsoft . ML . Auto
9
9
{
10
- public class RunResult < T >
10
+ public sealed class RunResult < T >
11
11
{
12
12
public readonly T Metrics ;
13
13
public readonly ITransformer Model ;
You can’t perform that action at this time.
0 commit comments