Package org.cspoker.ai.opponentmodels.weka

Examples of org.cspoker.ai.opponentmodels.weka.WekaLearningModel


   
    for (int i = 0; i < runner.nbPlayersPerGame; i++) {
      try {
        bot = (MCTSBot) runner.getBot(i);
        Config config = bot.getConfig();
        WekaLearningModel model = (WekaLearningModel) config.getModel();
        if (model.getConfig().useOnlineLearning())
          return bot;
      } catch (Exception e) {
        bot = null;
      }
    }
View Full Code Here


  private boolean modelCreated(PlayerId actor) {
    try {
      MCTSBot bot = getLearningMCTSBot();
      if (bot.getId().equals(actor)) return false;
      Config config = bot.getConfig();
      WekaLearningModel model = (WekaLearningModel) config.getModel();
      ARFFPlayer player = model.getPlayer(actor);
      return player.modelCreated();
    } catch (Exception e) {
      System.err.println(e);
      return false;
    }
View Full Code Here

  private double getAccuracy(PlayerId actor) {
    try {
      MCTSBot bot = getLearningMCTSBot();
      if (bot.getId().equals(actor)) return 0.0;
      Config config = bot.getConfig();
      WekaLearningModel model = (WekaLearningModel) config.getModel();
      return model.getPlayerAccuracy(actor);
    } catch (Exception e) {
      System.err.println(e);
      return 0.0;
    }
  }
View Full Code Here

  showdown0Model, showdown1Model, showdown2Model, showdown3Model, showdown4Model, showdown5Model;


  @Override
  public OpponentModel create(PlayerId bot) {
    return new WekaLearningModel(bot, new WekaRegressionModel(preBetModel, preFoldModel, preCallModel, preRaiseModel, postBetModel, postFoldModel, postCallModel, postRaiseModel,
      showdown0Model, showdown1Model, showdown2Model, showdown3Model, showdown4Model, showdown5Model), config, listeners);
  }
View Full Code Here

TOP

Related Classes of org.cspoker.ai.opponentmodels.weka.WekaLearningModel

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.