Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Microsoft.ML.PipelineInference/ExperimentsGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ public static List<Sweep> GenerateCandidates(IHostEnvironment env, string dataFi
// Exclude the hidden learners, and the metalinear learners.
var trainers = ComponentCatalog.GetAllDerivedClasses(typeof(ITrainer), predictorType).Where(cls => !cls.IsHidden);

string loader = $" loader=TextLoader{{{loaderSettings}}}";
if (!string.IsNullOrEmpty(loaderSettings))
{
StringBuilder sb = new StringBuilder();
CmdQuoter.QuoteValue(loaderSettings, sb, true);
loaderSettings = sb.ToString();
}

string loader = $" loader=TextLoader{loaderSettings}";

// REVIEW: there are more learners than recipes atm.
// Flip looping through recipes, then through learners if the cardinality changes.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.PipelineInference/TransformInference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public TransformString(string kind, string settings)
public bool Equals(TransformString other)
{
return Kind == other.Kind &&
Settings.Equals(other.Settings);
Settings == other.Settings;
}

public override string ToString()
Expand Down