Package weka.core

Examples of weka.core.FastVector.capacity()


        attribute = new Attribute("a" + i);
      else
        attribute = new Attribute("a" + i, nominalValues);
      attributes.addElement(attribute);
    }
    for (int i = 0; i < classValues.capacity(); i++)
      classValues.addElement("c" + i);
    attribute = new Attribute ("class", classValues);
    attributes.addElement(attribute);

    dataset = new Instances(getRelationNameToUse(), attributes,
View Full Code Here


        attribute = new Attribute("a" + i);
      else
        attribute = new Attribute("a" + i, nominalValues);
      attributes.addElement(attribute);
    }
    for (int i = 0; i < classValues.capacity(); i++)
      classValues.addElement("c" + i);
    attribute = new Attribute ("class", classValues);
    attributes.addElement(attribute);

    dataset = new Instances(getRelationNameToUse(), attributes,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.