Wael
Wael

Reputation: 1

Split datasets in weka

I would like to splits datasets according to number of classes in Weka. for example if the data contains two class labels for example Yes or No, here I need to split, in case three class labels, I need three splits and so on.

Please Help me.

Upvotes: 0

Views: 1268

Answers (2)

Rushdi Shams
Rushdi Shams

Reputation: 2423

weka.filters.unsupervised.instance.RemoveWithValues -S 0.0 -C last -L 1 -V -i original.arff -o class1_file
weka.filters.unsupervised.instance.RemoveWithValues -S 0.0 -C last -L 2 -V -i original.arff -o class2_file

This can be achieved from Weka CLI. The examples assume that the class variable is the last index.

Upvotes: 2

Zahra Aminolroaya
Zahra Aminolroaya

Reputation: 520

you can visualize them with pre-processing window check WEKA Explorer Tutorial

and also Classification and clustering if you have training data.

Upvotes: 0

Related Questions