Пример #1
0
        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}}}");
        }
Пример #2
0
        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));
        }
Пример #3
0
        public PipelineNode ToPipelineNode()
        {
            var sweepParams = SweepParams.Where(p => p.RawValue != null);

            return(_trainerExtension.CreatePipelineNode(sweepParams, _columnInfo));
        }