Package trackerModule.weka

Examples of trackerModule.weka.WekaInterface


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


    
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 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

Related Classes of trackerModule.weka.WekaInterface

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.