Skip to content

Commit df1c72f

Browse files
codemzssfilipi
authored andcommitted
Add Cancellation checkpoint in Normalizer transfomer. (#3062)
* Add Cancellation checkpoint in Normalizer transfomer.
1 parent 1f6b3be commit df1c72f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Microsoft.ML.Data/Transforms/Normalizer.cs

+1
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ internal static NormalizingTransformer Train(IHostEnvironment env, IDataView dat
462462

463463
while (cursor.MoveNext())
464464
{
465+
env.CheckAlive();
465466
// If the row has bad values, the good values are still being used for training.
466467
// The comparisons in the code below are arranged so that NaNs in the input are not recorded.
467468
// REVIEW: Should infinities and/or NaNs be filtered before the normalization? Should we not record infinities for min/max?

0 commit comments

Comments
 (0)