Faraz
Faraz

Reputation: 99

Numeric to binary filter in Weka

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?

My window

Upvotes: 1

Views: 3139

Answers (3)

Wesin Alves
Wesin Alves

Reputation: 401

enter image description here.

you can set Discretize filter to use 2 bins.

Set makeBinary, useEqualFrequency to True and desiredWeightOfInstancesPerInterval accordingly

Upvotes: 0

Atilla Ozgur
Atilla Ozgur

Reputation: 14721

You need to set attribute indices accordingly. For example below command only change index 2. weka.filters.unsupervised.attribute.NumericToBinary -R 2

  1. Click to empty place near to NumericToBinary
  2. Click to AttributeIndices empty place and write your attribute value.

enter image description here

Upvotes: 1

Waseem Ahmad Naeem
Waseem Ahmad Naeem

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

Related Questions