Package weka.core

Examples of weka.core.Instances.numClasses()


        String[] xx = null;

        if (ValidateFile(jjField.getText())){
        Instances theData = new Instances(new BufferedReader(new FileReader(jjField.getText())));
        theData.setClassIndex(theData.numAttributes()-1);
        xx = new String[theData.numClasses()];
        for (int xx_counter = 0;xx_counter<theData.numClasses();xx_counter++ ){
                xx[xx_counter] = theData.attribute(theData.classIndex()).value(xx_counter);
                }
            }
View Full Code Here


        if (ValidateFile(jjField.getText())){
        Instances theData = new Instances(new BufferedReader(new FileReader(jjField.getText())));
        theData.setClassIndex(theData.numAttributes()-1);
        xx = new String[theData.numClasses()];
        for (int xx_counter = 0;xx_counter<theData.numClasses();xx_counter++ ){
                xx[xx_counter] = theData.attribute(theData.classIndex()).value(xx_counter);
                }
            }

        return xx;
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.