Created
February 13, 2011 22:00
-
-
Save happyrobots/825195 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FastVector attributes = new FastVector(); | |
attributes.addElement(numericAttribute); | |
attributes.addElement(nominalAttribute); | |
attributes.addElement(stringAttribute); | |
attributes.addElement(anyOtherAttribute); | |
attributes.addElement(anotherAttribute); | |
Instances dataSet = new Instances("dataSetName", attributes, 50); | |
dataSet.setClassIndex(dataSet.numAttributes() - 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment