sohailshk opened a new issue, #41232:
URL: https://github.com/apache/beam/issues/41232

   ### What happened?
   
   On master (1878a5b), MajorityVote(normal_label=5, 
outlier_label=7).apply([AnomalyPrediction(label=5), 
AnomalyPrediction(label=7)]) returns an AnomalyPrediction with label=0, which 
is neither configured label. tie_breaker defaults to the constant 
DEFAULT_NORMAL_LABEL (0); its docstring says "Defaults to 0 (normal_label)" and 
the existing test comment says "use normal to break ties by default". With 
normal_label=1, outlier_label=0 a tie returns the outlier label. Expected: a 
tie returns normal_label unless tie_breaker is given.
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [x] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Prism Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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