Reputation: 99
I have csv data. I try to change one field from numeric to binary, But Numeric to binary filter apply for all indexes. How can I only apply it only for one index?
Upvotes: 1
Views: 3139
Reputation: 401
you can set Discretize filter to use 2 bins.
Set makeBinary, useEqualFrequency to True and desiredWeightOfInstancesPerInterval accordingly
Upvotes: 0
Reputation: 14721
You need to set attribute indices accordingly. For example below command only change index 2. weka.filters.unsupervised.attribute.NumericToBinary -R 2
Upvotes: 1
Reputation: 890
You Didn't mentioned Sufficient details in question. But in any kind of relational databases you can access any cell just like accessing cell in 2d Array.You have to mention exact location(indices) to do that.
Upvotes: 0