Skip to content

Commit 76c8f03

Browse files
Ivanidzo4kaeerhardt
authored andcommitted
Disable ordinary least squares by removing the entry point (dotnet#286)
* Disable ols by temporarily removing the entry point. It may be added again once we figure out how to ship MKL as part of this project.
1 parent 6eb3551 commit 76c8f03

File tree

4 files changed

+36
-295
lines changed

4 files changed

+36
-295
lines changed

src/Microsoft.ML.StandardLearners/Standard/OlsLinearRegression.cs

-14
Original file line numberDiff line numberDiff line change
@@ -491,20 +491,6 @@ public static void Pptri(Layout layout, UpLo uplo, int n, Double[] ap)
491491
}
492492
}
493493
}
494-
495-
[TlcModule.EntryPoint(Name= "Trainers.OrdinaryLeastSquaresRegressor", Desc = "Train an OLS regression model.", UserName = UserNameValue, ShortName = ShortName)]
496-
public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, Arguments input)
497-
{
498-
Contracts.CheckValue(env, nameof(env));
499-
var host = env.Register("TrainOLS");
500-
host.CheckValue(input, nameof(input));
501-
EntryPointUtils.CheckInputArgs(host, input);
502-
503-
return LearnerEntryPointsUtils.Train<Arguments, CommonOutputs.RegressionOutput>(host, input,
504-
() => new OlsLinearRegressionTrainer(host, input),
505-
() => LearnerEntryPointsUtils.FindColumn(host, input.TrainingData.Schema, input.LabelColumn),
506-
() => LearnerEntryPointsUtils.FindColumn(host, input.TrainingData.Schema, input.WeightColumn));
507-
}
508494
}
509495

510496
/// <summary>

0 commit comments

Comments
 (0)