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