Skip to content

Commit f2096e9

Browse files
Tom FinleyTomFinley
Tom Finley
authored andcommitted
Remove IMetaLinearTrainer
1 parent 38eaf93 commit f2096e9

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/Microsoft.ML.Core/Prediction/ITrainer.cs

-8
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,4 @@ public interface IModelCombiner<TModel, TPredictor>
101101
{
102102
TPredictor CombineModels(IEnumerable<TModel> models);
103103
}
104-
105-
/// <summary>
106-
/// Interface implemented by the MetalinearLearners base class.
107-
/// Used to distinguish the MetaLinear Learners from the other learners
108-
/// </summary>
109-
public interface IMetaLinearTrainer
110-
{
111-
}
112104
}

src/Microsoft.ML.PipelineInference/ExperimentsGenerator.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ public static List<Sweep> GenerateCandidates(IHostEnvironment env, string dataFi
110110

111111
//get all the trainers for this task, and generate the initial set of candidates.
112112
// Exclude the hidden learners, and the metalinear learners.
113-
var trainers = ComponentCatalog.GetAllDerivedClasses(typeof(ITrainer), predictorType)
114-
.Where(cls => !cls.IsHidden && !typeof(IMetaLinearTrainer).IsAssignableFrom(cls.Type));
113+
var trainers = ComponentCatalog.GetAllDerivedClasses(typeof(ITrainer), predictorType).Where(cls => !cls.IsHidden);
115114

116115
var loaderSubComponent = new SubComponent("TextLoader", loaderSettings);
117116
string loader = $" loader={loaderSubComponent}";

0 commit comments

Comments
 (0)