public override string ToString() { var paramsStr = string.Empty; if (SweepParams != null) { paramsStr = string.Join(", ", SweepParams.Where(p => p != null && p.RawValue != null).Select(p => $"{p.Name}:{p.ProcessedValue()}")); } return($"{TrainerName}{{{paramsStr}}}"); }
public PipelineNode ToPipelineNode() { var hyperParams = SweepParams.Where(p => p != null && p.RawValue != null); var elementProperties = new Dictionary <string, object>(); foreach (var hyperParam in hyperParams) { elementProperties[hyperParam.Name] = hyperParam.ProcessedValue(); } return(new PipelineNode(TrainerName.ToString(), PipelineNodeType.Trainer, new[] { "Features" }, new[] { "Score" }, elementProperties)); }
public PipelineNode ToPipelineNode() { var sweepParams = SweepParams.Where(p => p.RawValue != null); return(_trainerExtension.CreatePipelineNode(sweepParams, _columnInfo)); }