public void SweepableEstimatorPipeline_append_test() { var e1 = new SweepableEstimator(CodeGen.EstimatorType.Concatenate); var e2 = new SweepableEstimator(CodeGen.EstimatorType.ConvertType); var pipeline = new SweepableEstimatorPipeline(); pipeline = pipeline.Append(e1).Append(e2); pipeline.ToString().Should().Be("Concatenate=>ConvertType"); pipeline.SearchSpace.FeatureSpaceDim.Should().Be(0); }
public static SweepableEstimatorPipeline Append(this SweepableEstimatorPipeline pipeline, IEstimator <ITransformer> estimator1) { return(pipeline.Append(new SweepableEstimator((context, parameter) => estimator1, new SearchSpace.SearchSpace()))); }