The Data Mining Forum                             open-source data mining software data mining conferences Data Science for Social and Behavioral Analytics DSSBA 2022 data science journal
IMPORTANT: This is the old Data Mining forum.
I keep it online so that you can read the old messages.

Please post your new messages in the new forum: https://forum2.philippe-fournier-viger.com/index.php
 
How to change my number of bins?
Posted by: bowie
Date: March 10, 2019 01:12PM

I wish to calculate the weight of evidence of a variable x, which is positively skewed, with over 6000 of the observations are 999 but only 200 range from 1-27. I used the code,

IV <- create_infotables(data=Test[,-1], y="class", bins=10)


However, no matter what number I used in bins parameter, I can only get 2 bins, [1,27] and [999,999]. Is there any way I can look into the [1,27] closer because they represent a lot? The output from R is shown below,

$Tables$pdays
      pdays    N    Percent        WOE        IV
1    [1,27]  243 0.03807584  2.6743166 0.5267751
2 [999,999] 6139 0.96192416 -0.2230081 0.5707022

Options: ReplyQuote
Re: How to change my number of bins?
Date: March 13, 2019 06:26PM

Are you using Python? or R?

Options: ReplyQuote


This forum is powered by Phorum and provided by P. Fournier-Viger (© 2012).
Terms of use.