64 references to RegressionMetric
Microsoft.ML.AutoML (42)
API\AutoMLExperimentExtension.cs (1)
122
public static AutoMLExperiment SetRegressionMetric(this AutoMLExperiment experiment,
RegressionMetric
metric, string labelColumn = "Label", string scoreColumn = "Score")
API\RecommendationExperiment.cs (3)
20
/// <value>The default value is <see cref="
RegressionMetric
.RSquared"/>.</value>
21
public
RegressionMetric
OptimizingMetric { get; set; }
34
OptimizingMetric =
RegressionMetric
.RSquared;
API\RegressionExperiment.cs (12)
28
/// <value>The default value is <see cref="
RegressionMetric
.RSquared" />.</value>
29
public
RegressionMetric
OptimizingMetric { get; set; }
44
OptimizingMetric =
RegressionMetric
.RSquared;
340
public static RunDetail<RegressionMetrics> Best(this IEnumerable<RunDetail<RegressionMetrics>> results,
RegressionMetric
metric =
RegressionMetric
.RSquared)
353
public static CrossValidationRunDetail<RegressionMetrics> Best(this IEnumerable<CrossValidationRunDetail<RegressionMetrics>> results,
RegressionMetric
metric =
RegressionMetric
.RSquared)
469
private double GetMetric(
RegressionMetric
metric, RegressionMetrics metrics)
473
RegressionMetric
.RootMeanSquaredError => metrics.RootMeanSquaredError,
474
RegressionMetric
.RSquared => metrics.RSquared,
475
RegressionMetric
.MeanSquaredError => metrics.MeanSquaredError,
476
RegressionMetric
.MeanAbsoluteError => metrics.MeanAbsoluteError,
AutoMLExperiment\IMetricManager.cs (9)
111
public
RegressionMetric
Metric { get; set; }
119
RegressionMetric
.RSquared => true,
120
RegressionMetric
.RootMeanSquaredError => false,
121
RegressionMetric
.MeanSquaredError => false,
122
RegressionMetric
.MeanAbsoluteError => false,
134
RegressionMetric
.RSquared => metric.RSquared,
135
RegressionMetric
.RootMeanSquaredError => metric.RootMeanSquaredError,
136
RegressionMetric
.MeanSquaredError => metric.MeanSquaredError,
137
RegressionMetric
.MeanAbsoluteError => metric.MeanAbsoluteError,
Experiment\MetricsAgents\RegressionMetricsAgent.cs (10)
12
private readonly
RegressionMetric
_optimizingMetric;
14
public RegressionMetricsAgent(MLContext mlContext,
RegressionMetric
optimizingMetric)
29
case
RegressionMetric
.MeanAbsoluteError:
31
case
RegressionMetric
.MeanSquaredError:
33
case
RegressionMetric
.RootMeanSquaredError:
35
case
RegressionMetric
.RSquared:
51
case
RegressionMetric
.MeanAbsoluteError:
53
case
RegressionMetric
.MeanSquaredError:
55
case
RegressionMetric
.RootMeanSquaredError:
57
case
RegressionMetric
.RSquared:
Experiment\OptimizingMetricInfo.cs (6)
13
private static readonly
RegressionMetric
[] _minimizingRegressionMetrics = new
RegressionMetric
[]
15
RegressionMetric
.MeanAbsoluteError,
16
RegressionMetric
.MeanSquaredError,
17
RegressionMetric
.RootMeanSquaredError
29
public OptimizingMetricInfo(
RegressionMetric
regressionMetric)
Utils\BestResultUtil.cs (1)
22
RegressionMetric
metric)
Microsoft.ML.AutoML.Tests (22)
AutoMLExperimentTests.cs (4)
357
.SetRegressionMetric(
RegressionMetric
.RSquared, label)
367
.SetRegressionMetric(
RegressionMetric
.RSquared, label)
387
.SetRegressionMetric(
RegressionMetric
.RSquared, label)
406
.SetRegressionMetric(
RegressionMetric
.RSquared, label)
BestResultUtilTests.cs (2)
35
var metricsAgent = new RegressionMetricsAgent(null,
RegressionMetric
.RSquared);
48
var metricsAgent = new RegressionMetricsAgent(null,
RegressionMetric
.RSquared);
MetricsAgentsTests.cs (14)
98
Assert.Equal(0.2, GetScore(metrics,
RegressionMetric
.MeanAbsoluteError));
99
Assert.Equal(0.3, GetScore(metrics,
RegressionMetric
.MeanSquaredError));
100
Assert.Equal(0.4, GetScore(metrics,
RegressionMetric
.RootMeanSquaredError));
101
Assert.Equal(0.6, GetScore(metrics,
RegressionMetric
.RSquared));
108
Assert.False(IsPerfectModel(metrics,
RegressionMetric
.MeanAbsoluteError));
109
Assert.False(IsPerfectModel(metrics,
RegressionMetric
.MeanSquaredError));
110
Assert.False(IsPerfectModel(metrics,
RegressionMetric
.RootMeanSquaredError));
111
Assert.False(IsPerfectModel(metrics,
RegressionMetric
.RSquared));
118
Assert.True(IsPerfectModel(metrics,
RegressionMetric
.MeanAbsoluteError));
119
Assert.True(IsPerfectModel(metrics,
RegressionMetric
.MeanSquaredError));
120
Assert.True(IsPerfectModel(metrics,
RegressionMetric
.RootMeanSquaredError));
121
Assert.True(IsPerfectModel(metrics,
RegressionMetric
.RSquared));
177
private static double GetScore(RegressionMetrics metrics,
RegressionMetric
metric)
199
private static bool IsPerfectModel(RegressionMetrics metrics,
RegressionMetric
metric)
Utils\TaskAgnosticAutoFit.cs (2)
78
OptimizingMetric =
RegressionMetric
.RSquared,
100
OptimizingMetric =
RegressionMetric
.RSquared,