toad icon indicating copy to clipboard operation
toad copied to clipboard

分箱使用combiner.transform()后,target列全部变为0

Open nllatt opened this issue 3 years ago • 1 comments

在未分箱前target列的数据分布: image 使用如下代码分箱后,target列全部变为0: combiner = toad.transform.Combiner() combiner.fit(cat_train,cat_train[target],method='quantile') bins = combiner.export() train_bin = combiner.transform(cat_train) image

nllatt avatar Feb 20 '22 16:02 nllatt

@nllatt 有样例代码提供么?

Secbone avatar Mar 07 '22 11:03 Secbone