Package moa.core

Examples of moa.core.InstancesHeader


  public void execute(Tuple input) {
   
    Object obj = input.getValue(0);
    //If we get the instance headers set them and reset
    if(obj.getClass() == Instances.class){
      INST_HEADERS = new InstancesHeader((Instances) obj);
      classifier.setModelContext(INST_HEADERS);
      classifier.resetLearningImpl();
    }else if(obj.getClass() == SparseInstance.class){
      //If it's an instance
      SparseInstance inst = (SparseInstance) obj;
View Full Code Here


   
    Object obj = input.getValue(0);
   
    //If we get the headers set them and reset
    if(obj.getClass() == Instances.class){
      INST_HEADERS = new InstancesHeader((Instances) obj);
      classifier.setModelContext(INST_HEADERS);
      classifier.resetLearningImpl();
    }else{
      SparseInstance inst = (SparseInstance) obj;
      //Emit the entire prediction array and the correct value
View Full Code Here

TOP

Related Classes of moa.core.InstancesHeader

Copyright © 2018 www.massapicom. 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.