aIbrahiim commented on code in PR #38215:
URL: https://github.com/apache/beam/pull/38215#discussion_r3292920800


##########
sdks/python/apache_beam/ml/anomaly/transforms.py:
##########
@@ -400,7 +400,6 @@ def expand(
 
     ret = (
         input
-        | beam.Reshuffle()

Review Comment:
   > Btw, if you make functional changes (not just benchmark changes) please 
clearly call that out in a comment or the description. I don't think we want 
this change though
   
   I remmoved reshffule as test_one_detector_1 was failing on the portable 
runner in py 311 ml and tje ZScore learns in input order (score, then update) 
and I found out that Reshuffle() can change that order so i saw wrong scores 
(e.g. nan instead of 8.0 for the outlier row) that's why I removed it to keep 
order stable for online detectors but if this is not the right approach i can 
add reshuffle back and try to fix that test



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to