you wrote :
We see that the discretizer transforms the original data into an integer. This integer represents the bin index when the distribution by quantile is performed. We can check the number of bins per feature.
but data_trans
is :
array([[249., 39., 231., ..., 83., 162., 30.],
[248., 19., 203., ..., 28., 161., 30.],
[242., 49., 249., ..., 125., 160., 29.],
...,
[ 17., 15., 126., ..., 49., 200., 82.],
[ 23., 16., 136., ..., 29., 200., 77.],
[ 53., 14., 130., ..., 93., 199., 81.]])
So I see that data_trans
is an array of float numbers not an integer!