A little help wit this error ?
I get it when i am running CFS in R
Runnin code:
best_features<- cfs(Target~.,df)
where df is the dataset and Target and best_features are self explanatory.
Error:
Error in .jcall("weka/filters/Filter", "Lweka/core/Instances;", "useFilter", :
java.lang.IllegalArgumentException: A duplicate bin range was detected. Try increasing the bin range precision.
The "
A duplicate bin range was detected.
" error is thrown byRWeka::Discretize
which manyFSelector
functions call internally. It occurs when data columns contain too many values that differ only by a small amount (becauseDiscretize
uses fixed point representation when naming bins).The solution is to scale the data by a large factor: