Package org.cspoker.ai.bots.bot.gametree.mcts.strategies.selection

Examples of org.cspoker.ai.bots.bot.gametree.mcts.strategies.selection.SamplingSelector


          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      double C2 = Double.parseDouble(args[6]);
      int treshold1 = Integer.parseInt(args[7]);
      int treshold2 = Integer.parseInt(args[8]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                p,f,t,r
            ),
            new FixedSampleMCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
View Full Code Here


      configPersist.setModelCreationTreshold(100);
      botFactory = new MCTSBotFactory("MCTSBot",
          WekaRegressionModelFactory.createForZip(
              "org/cspoker/ai/opponentmodels/weka/models/model1.zip", configPersist/*, kullbackLeibler*/),
          new SamplingToFunctionSelector(50,new UCTSelector(2000)),
          new SamplingSelector(),
          new MaxValueSelector(),
          new MCTSShowdownRollOutNode.Factory(),
          new SampleWeightedBackPropStrategy.Factory(),
          new BucketSampler(0.01),
          250,
View Full Code Here

          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/ai/opponentmodels/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      int treshold1 = Integer.parseInt(args[6]);

      int treshold2 = Integer.parseInt(args[7]);


      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                p,f,t,r
            ),
            new FixedSampleMCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
View Full Code Here

            new HandBotFactory("HandBot"),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      int treshold1 = Integer.parseInt(args[6]);
      int treshold2 = Integer.parseInt(args[7]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new CardBotFactory("CardBot"),
            new HandBotFactory("HandBot"),
            new FixedSampleMCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
View Full Code Here

          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      double C2 = Double.parseDouble(args[6]);
      int treshold1 = Integer.parseInt(args[7]);
      int treshold2 = Integer.parseInt(args[8]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                p,f,t,r
            ),
            new FixedSampleMCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
View Full Code Here

//            200,500,1000,3000),
        new MCTSBotFactory("MCTSBot NO LEARNING",
            WekaRegressionModelFactory.createForZip(
                "org/cspoker/ai/opponentmodels/weka/models/model1.zip", configNoPersist),
            new SamplingToFunctionSelector(50,new UCTSelector(2000)),
            new SamplingSelector(),
            new MaxValueSelector(),
            new MCTSShowdownRollOutNode.Factory(),
            new SampleWeightedBackPropStrategy.Factory(),
            s,
            500
        ),
        new MCTSBotFactory("MCTSBot",
            WekaRegressionModelFactory.createForZip(
                "org/cspoker/ai/opponentmodels/weka/models/model1.zip", configPersist/*, kullbackLeibler*/),
            new SamplingToFunctionSelector(50,new UCTSelector(20000)),
            new SamplingSelector(),
            new MaxValueSelector(),
            new MCTSShowdownRollOutNode.Factory(),
            new SampleWeightedBackPropStrategy.Factory(),
            s,
            500
View Full Code Here

      //       new CallBotFactory();
      new MCTSBotFactory(
          "CSPoker Bot",
          WekaRegressionModelFactory.createForZip("org/cspoker/ai/opponentmodels/weka/models/model1.zip", config),
          new SamplingToFunctionSelector(50,new UCTSelector(2000000)),
          new SamplingSelector(),
          new MaxValueSelector(),
          //new MCTSBucketShowdownNode.Factory(),
          new MCTSShowdownRollOutNode.Factory(),
          new SampleWeightedBackPropStrategy.Factory(),
          new StochasticUniversalSampler(),
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.bot.gametree.mcts.strategies.selection.SamplingSelector

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.