Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Microsoft.ML/LearningPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ public PredictionModel<TInput, TOutput> Train<TInput, TOutput>()

if (transformModels.Count > 0)
{
transformModels.Insert(0,lastTransformModel);
if (lastTransformModel != null)
transformModels.Insert(0, lastTransformModel);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transformModels [](start = 24, length = 15)

would be nice to add test coverage

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


var modelInput = new Transforms.ModelCombiner
{
Models = new ArrayVar<ITransformModel>(transformModels.ToArray())
Expand Down