Question

I want to create an ARFF dataset for WEKA and use Nearest Neighbors classifier on it. My data are 2D points with X and Y coordinates and I'll use Euclidean distance to find the neighbors.

Is this the correct format?

@RELATION name

@ATTRIBUTE X       NUMERIC
@ATTRIBUTE Y       NUMERIC
@ATTRIBUTE class   {classy,classless}

@DATA
0,4,classy
0,6,classy
1,3,classless

Thanks

Was it helpful?

Solution

Are you just looking for a yes or no answer? That is the correct format for an ARFF file with two numeric attributes and a binary class. This link provides lots of details on the ARFF format http://www.cs.waikato.ac.nz/~ml/weka/arff.html.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top