You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dong Lin (Jira)" <ji...@apache.org> on 2023/04/01 02:53:00 UTC
[jira] [Resolved] (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 ]
Dong Lin resolved FLINK-31029.
------------------------------
Resolution: Fixed
> 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
> Assignee: Zhipeng Zhang
> 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)