@@ -66,7 +66,7 @@ public LearningPipeline()
66
66
/// </summary>
67
67
/// <param name="seed">Specify seed for random generator</param>
68
68
/// <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 )
70
70
{
71
71
_seed = seed ;
72
72
_conc = conc ;
@@ -109,6 +109,16 @@ internal LearningPipeline(int? seed=null, int conc=0)
109
109
/// <param name="item">Any ML component (data loader, transform or trainer) defined as <see cref="ILearningPipelineItem"/>.</param>
110
110
public void Add ( ILearningPipelineItem item ) => Items . Add ( item ) ;
111
111
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
+ }
112
122
/// <summary>
113
123
/// Remove all the loaders/transforms/trainers from the pipeline.
114
124
/// </summary>
@@ -152,7 +162,7 @@ public PredictionModel<TInput, TOutput> Train<TInput, TOutput>()
152
162
where TInput : class
153
163
where TOutput : class , new ( )
154
164
{
155
- using ( var environment = new TlcEnvironment ( seed : _seed , conc : _conc ) )
165
+ using ( var environment = new TlcEnvironment ( seed : _seed , conc : _conc ) )
156
166
{
157
167
Experiment experiment = environment . CreateExperiment ( ) ;
158
168
ILearningPipelineStep step = null ;
0 commit comments