2 writes to RSquared
Microsoft.ML.Data (2)
Evaluators\Metrics\RegressionMetrics.cs (2)
76
RSquared
= Fetch(RegressionEvaluator.RSquared);
86
RSquared
= rSquared;
54 references to RSquared
Microsoft.ML.AutoML (6)
API\RegressionExperiment.cs (2)
70
/// See <see cref="RegressionMetrics.
RSquared
"/>.
474
RegressionMetric.RSquared => metrics.
RSquared
,
AutoMLExperiment\IMetricManager.cs (1)
134
RegressionMetric.RSquared => metric.
RSquared
,
Experiment\MetricsAgents\RegressionMetricsAgent.cs (1)
36
return metrics.
RSquared
;
Experiment\Runners\CrossValSummaryRunner.cs (1)
142
rSquared: GetAverageOfNonNaNScores(newMetrics.Select(x => x.
RSquared
)));
Tuner\SmacTuner.cs (1)
153
_channel?.Trace($"SMAC - fitting metric: rsquare {eval.
RSquared
}");
Microsoft.ML.AutoML.Samples (2)
AutoFit\RecommendationExperiment.cs (1)
89
Console.WriteLine($"RSquared: {metrics.
RSquared
}");
AutoFit\RegressionExperiment.cs (1)
73
Console.WriteLine($"RSquared: {metrics.
RSquared
}");
Microsoft.ML.AutoML.Tests (7)
AutoFitTests.cs (6)
175
Assert.True(result.BestRun.ValidationMetrics.
RSquared
> 0.70);
205
Assert.True(result.BestRun.Results.Select(x => x.ValidationMetrics.
RSquared
).Min() > 0.70);
236
Assert.True(result.BestRun.ValidationMetrics.
RSquared
> 0.70);
245
Assert.True(result.BestRun.ValidationMetrics.
RSquared
> 0.70);
543
Assert.True(experimentResult.RunDetails.Max(i => i?.ValidationMetrics?.
RSquared
* i?.ValidationMetrics?.
RSquared
) > 0.5);
Utils\TaskAgnosticAutoFit.cs (1)
155
result.PrimaryMetricResult = regressionMetrics.
RSquared
; // TODO: don't hardcode metric
Microsoft.ML.Fairlearn (2)
Metrics\FairlearnMetricCatalog.cs (2)
235
result["RSquared"] = DataFrameColumn.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].
RSquared
));
261
{ "RSquared", metrics.
RSquared
},
Microsoft.ML.IntegrationTests (3)
Common.cs (1)
274
Assert.True(metrics.
RSquared
<= 1);
Validation.cs (2)
162
Assert.Equal(double.NaN, evalResultOneRow.
RSquared
);
168
Assert.Equal(0, evalResultZeroRows.
RSquared
);
Microsoft.ML.Predictor.Tests (1)
TestIniModels.cs (1)
551
Assert.Equal(0.88620288753853549, results.
RSquared
);
Microsoft.ML.Samples (24)
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
132
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
156
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastForest.cs (1)
115
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
128
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastTree.cs (1)
115
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
115
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
130
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
131
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\Gam.cs (1)
115
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
126
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
113
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
127
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LightGbm.cs (1)
116
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
82
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
135
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
91
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
104
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
120
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
112
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
83
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
124
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
87
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\Sdca.cs (1)
112
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
128
Console.WriteLine("RSquared: " + metrics.
RSquared
);
Microsoft.ML.Samples.OneDal (4)
Program.cs (4)
123
metrics[2] = trainingMetrics.
RSquared
;
124
metrics[3] = testingMetrics.
RSquared
;
151
metrics[2] = trainingMetrics.
RSquared
;
152
metrics[3] = testingMetrics.
RSquared
;
Microsoft.ML.Tests (1)
Scenarios\RegressionTest.cs (1)
46
Assert.True(metrics.
RSquared
> .8);
Microsoft.ML.Transforms (4)
MetricStatistics.cs (2)
111
/// Summary statistics for <see cref="RegressionMetrics.
RSquared
"/>.
134
RSquared.Add(metrics.
RSquared
);
PermutationFeatureImportanceExtensions.cs (2)
169
rSquared: a.
RSquared
- b.
RSquared
);