Examples of WekaInterface


Examples of trackerModule.weka.WekaInterface

 
  /**
   * Sets the weka interface.
   */
  public void setWekaInterface(){
    wekaInter = new WekaInterface();
    wekaInter.loadBIFFromFile("world.xml");
  }
View Full Code Here

Examples of trackerModule.weka.WekaInterface

    
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // convert TDB to weka
   
    //c.print();
    WekaInterface wekaInter = new WekaInterface();
    String[] pars = {"Location", "X", "Y", "Mission", "Meeting", "Route", "Type"};
    Instances data1 = wekaInter.getWekaDataFromUMatrix("Type", pars);
   
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // training
    wekaInter.saveWekaFile("world.arff", data1);
    BayesNet BN = wekaInter.trainBayesNet(data1);
    wekaInter.saveBIFFromFile("world.xml", BN);
  }
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.