コード例 #1
0
        public void TestRemotePolicy()
        {
            if (Academy.IsInitialized)
            {
                Academy.Instance.Dispose();
            }

            using (new AnalyticsUtils.DisableAnalyticsSending())
            {
                var actionSpec = ActionSpec.MakeContinuous(3);
                var policy     = new RemotePolicy(actionSpec, Array.Empty <IActuator>(), "TestBehavior?team=42");
                policy.RequestDecision(new AgentInfo(), new List <ISensor>());
            }

            Academy.Instance.Dispose();
        }
コード例 #2
0
        public void TestRemotePolicy()
        {
            if (Academy.IsInitialized)
            {
                Academy.Instance.Dispose();
            }

            using (new AnalyticsUtils.DisableAnalyticsSending())
            {
                var brainParameters = new BrainParameters();
                brainParameters.VectorObservationSize        = 8;
                brainParameters.VectorActionSize             = new [] { 2 };
                brainParameters.NumStackedVectorObservations = 1;
                brainParameters.VectorActionSpaceType        = SpaceType.Continuous;

                var policy = new RemotePolicy(brainParameters, "TestBehavior?team=42");
                policy.RequestDecision(new AgentInfo(), new List <ISensor>());
            }

            Academy.Instance.Dispose();
        }