Issue:
Currently we have to use the pipeline instance to append additional items to the pipeline. It looks something like this:
varpipeline=newLearningPipeline();pipeline.Add(newTextLoader<SentimentData>(dataPath,separator:","));pipeline.Add(newTextFeaturizer("Features","SentimentText"));We can add the ability to add a pipeline item in a fluent fashion. The benefit would be reduction of typing and cleaner API.
This would require pipeline to add the following method:
publicLearningPipelineAppend(ILearningPipelineItemitem);
The user code will look like this:
varpipeline=newLearningPipeline().Append(newTextLoader<SentimentData>(dataPath,separator:",")).Append(newTextFeaturizer("Features","SentimentText"));(optional) with extension methods, this can be simplified even further to:
varpipeline=newLearningPipeline().AddTextLoader<SentimentData>(dataPath,separator:",").AddTextFeaturizer("Features","SentimentText");
Issue:
Currently we have to use the pipeline instance to append additional items to the pipeline. It looks something like this:
We can add the ability to add a pipeline item in a fluent fashion. The benefit would be reduction of typing and cleaner API.
This would require pipeline to add the following method:
The user code will look like this:
(optional) with extension methods, this can be simplified even further to: