Skip to content

Commit

Permalink
Remove special case for Logistic Regression in MacroUtils.cs (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaeldMS authored May 14, 2018
1 parent 80a95b5 commit 3102180
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Microsoft.ML/Runtime/EntryPoints/MacroUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ public static T TrainerKindApiValue<T>(TrainerKinds trainerKind)

public static bool IsTrainerOfKind(Type type, TrainerKinds trainerKind)
{
if (type == typeof(Trainers.LogisticRegressionBinaryClassifier))
return trainerKind == TrainerKinds.SignatureBinaryClassifierTrainer;

if (type == typeof(Trainers.LogisticRegressionClassifier))
return trainerKind == TrainerKinds.SignatureMultiClassClassifierTrainer;

if (trainerKind != TrainerKinds.SignatureMultiClassClassifierTrainer && trainerKind != TrainerKinds.SignatureMultiOutputRegressorTrainer)
return type.Name.EndsWith(GetTrainerName(trainerKind));

Expand Down

0 comments on commit 3102180

Please sign in to comment.