Created
February 13, 2011 20:14
-
-
Save happyrobots/825074 to your computer and use it in GitHub Desktop.
Weka examples how to create attribute with different types.
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 validNominalValues = new FastVector(2); | |
validNominalValues.addElement("male"); | |
validNominalValues.addElement("female"); | |
Attribute nominalAttribute = new Attribute("gender", validNominalValues); | |
FastVector nullFastVector = null; | |
Attribute stringAttribute = new Attribute("userId", nullFastVector); | |
Attribute numericAttribute = new Attribute("humidity"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment