You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/03/09 12:27:00 UTC
[jira] [Updated] (FLINK-31029) KBinsDiscretizer gives wrong bin edges in 'quantile' strategy when input data contains only 2 distinct values
[ https://issues.apache.org/jira/browse/FLINK-31029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-31029:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Labels: pull-request-available
>
> 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)