[ 
https://issues.apache.org/jira/browse/FLINK-31029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fan Hong updated FLINK-31029:
-----------------------------
    Description: 
When one input column contains only 2 distinct values and their counts are 
same, KBinsDiscretizer transforms this column to all 0s using `quantile` 
strategy. An example of such column is `[0, 0, 0, 1, 1, 1]`.

When the 2 distinct values have different counts, the transformed values are 
also all 0s, which cannot distinguish them.

  was:When a input column contains only 2 distinct values, and their counts are 
same, 


> KBinsDiscretizer gives wrong bin edges in 'quantile' strategy when input data 
> contains only 2 distinct values
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-31029
>                 URL: https://issues.apache.org/jira/browse/FLINK-31029
>             Project: Flink
>          Issue Type: Bug
>          Components: Library / Machine Learning
>            Reporter: Fan Hong
>            Priority: Major
>
> When one input column contains only 2 distinct values and their counts are 
> same, KBinsDiscretizer transforms this column to all 0s using `quantile` 
> strategy. An example of such column is `[0, 0, 0, 1, 1, 1]`.
> When the 2 distinct values have different counts, the transformed values are 
> also all 0s, which cannot distinguish them.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to