Examples of enumerateValues()


Examples of weka.core.Attribute.enumerateValues()

    dataField.setDataType(DATATYPE.STRING); // DATATYPE
    dataField.setName("class"); // String
    dataField.setOptype(OPTYPE.CATEGORICAL); // OPTYPE
    dataDictionary.getDataField().add(dataField);
    Attribute classAttr = data.classAttribute();
    Enumeration values = classAttr.enumerateValues();

    while (values.hasMoreElements()) {
      ValueType valueType = _40Factory.eINSTANCE.createValueType();
      valueType.setValue(values.nextElement().toString());
      dataField.getValue().add(valueType);
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.