racunen
racunen

Reputation: 23

How can I convert numerical classes to factors in WEKA?

In a dataset with numerical values in classes, for example like this:

Class: 1.0, 2.0, 3.0, 4.0

WEKA open the dataset understanding Class label as a numerical, but I need WEKA interpret that variable as a categorical variable.

I need to get something like this, but in WEKA:

data$Class = as.factor(data$Class)

Upvotes: 0

Views: 394

Answers (1)

hkn
hkn

Reputation: 1448

You can use NumericToNominal filter.

Upvotes: 1

Related Questions