Examples of MinBanditPolicyFactory


Examples of org.jamesii.simspex.adaptiverunner.policies.plugintype.MinBanditPolicyFactory

    AdaptiveComputationTaskRunner asr = null;
    try {
      ParameterBlock policyParameters =
          ParameterBlocks.getSBOrDefault(params, POLICY,
              IntEstimDecFactory.class.getName());
      MinBanditPolicyFactory mbFac =
          SimSystem.getRegistry().getFactory(
              AbstractMinBanditPolicyFactory.class, policyParameters);
      SimSystem.report(Level.INFO,
          "Adaptive task runner uses: " + mbFac.getName());
      asr =
          new AdaptiveComputationTaskRunner(params.getSubBlockValue(
              ParallelComputationTaskRunnerFactory.NUM_CORES, -1), mbFac,
              policyParameters);
      asr.setPolicyObservers(params.getSubBlockValue(POLICY_OBSERVERS,
View Full Code Here

Examples of org.jamesii.simspex.adaptiverunner.policies.plugintype.MinBanditPolicyFactory

  /**
   * Tests the policy.
   */
  public void testPolicy() throws Exception {
    Pair<MinBanditPolicyFactory, ParameterBlock> setup = getPolicySetup();
    MinBanditPolicyFactory polFactory = setup.getFirstValue();
    SimplePolicyObserver polObserver = new SimplePolicyObserver();

    testSampleModel(polFactory, setup.getSecondValue(), getModelLocation(), 30,
        0.00001, polObserver);
  }
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.