@@ -66,7 +66,7 @@ public LearningPipeline()
6666 /// </summary>
6767 /// <param name="seed">Specify seed for random generator</param>
6868 /// <param name="conc">Specify concurrency factor (default value - autoselection)</param>
69- internal LearningPipeline ( int ? seed = null , int conc = 0 )
69+ internal LearningPipeline ( int ? seed = null , int conc = 0 )
7070 {
7171 _seed = seed ;
7272 _conc = conc ;
@@ -109,6 +109,16 @@ internal LearningPipeline(int? seed=null, int conc=0)
109109 /// <param name="item">Any ML component (data loader, transform or trainer) defined as <see cref="ILearningPipelineItem"/>.</param>
110110 public void Add ( ILearningPipelineItem item ) => Items . Add ( item ) ;
111111
112+ /// <summary>
113+ /// Add a data loader, transform or trainer into the pipeline.
114+ /// </summary>
115+ /// <param name="item">Any ML component (data loader, transform or trainer) defined as <see cref="ILearningPipelineItem"/>.</param>
116+ /// <returns>Pipeline with added item</returns>
117+ public LearningPipeline Append ( ILearningPipelineItem item )
118+ {
119+ Add ( item ) ;
120+ return this ;
121+ }
112122 /// <summary>
113123 /// Remove all the loaders/transforms/trainers from the pipeline.
114124 /// </summary>
@@ -152,7 +162,7 @@ public PredictionModel<TInput, TOutput> Train<TInput, TOutput>()
152162 where TInput : class
153163 where TOutput : class , new ( )
154164 {
155- using ( var environment = new TlcEnvironment ( seed : _seed , conc : _conc ) )
165+ using ( var environment = new TlcEnvironment ( seed : _seed , conc : _conc ) )
156166 {
157167 Experiment experiment = environment . CreateExperiment ( ) ;
158168 ILearningPipelineStep step = null ;
0 commit comments