Examples of insertAttributeAt()


Examples of weka.core.Instances.insertAttributeAt()

    }
   
    protected Classifier generateDecisionTree(AbstractClusterer clusterer, MarkovAttributeSet aset, Instances data) throws Exception {
        // We need to create a new Attribute that has the ClusterId
        Instances newData = data; // new Instances(data);
        newData.insertAttributeAt(new Attribute("ClusterId"), newData.numAttributes());
        Attribute cluster_attr = newData.attribute(newData.numAttributes()-1);
        assert(cluster_attr != null);
        assert(cluster_attr.index() > 0);
        newData.setClass(cluster_attr);
       
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.