Package org.cspoker.ai.bots.bot.gametree.mcts.nodes

Examples of org.cspoker.ai.bots.bot.gametree.mcts.nodes.Config


    if (bot != null) return bot;
   
    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

  public Bot createBot(final PlayerId botId, TableId tableId,
      SmartLobbyContext lobby, int buyIn, ExecutorService executor,
      BotListener... botListeners) {
    copies++;
    OpponentModel opponentModel = opponentModelFactory.create(botId);
    Config config = new Config(opponentModel, showdownNodeFactory,
        decisionNodeSelectionStrategy, opponentNodeSelectionStrategy,
        moveSelectionStrategy, backPropStratFactory, sampler);
    return new FixedSampleMCTSBot(botId, tableId, lobby, executor, buyIn,
        config,
        samplesPreFlop,
View Full Code Here

  public Bot createBot(final PlayerId botId, TableId tableId,
      SmartLobbyContext lobby, int buyIn, ExecutorService executor,
      BotListener... botListeners) {
    OpponentModel opponentModel = opponentModelFactory.create(botId);

    Config config = new Config(opponentModel, showdownNodeFactory,
        decisionNodeSelectionStrategy, opponentNodeSelectionStrategy,
        moveSelectionStrategy, backPropStratFactory, sampler);
    return new MCTSBot(botId, tableId, lobby, executor, buyIn,
        config,
        decisionTime,
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.bot.gametree.mcts.nodes.Config

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.