Ejemplo n.º 1
0
        private void Run(decimal learn, decimal discount, decimal explore)
        {
            trialNum++;
            this.learn    = learn;
            this.discount = discount;
            this.explore  = explore;
            if (master != null)
            {
                master.UpdateTrial(trialNum);
            }
            QState state = initialState.Initialize();

            state.Inherit(initialState);

            QState s = currentAlgo.Run(state, trialNum, learn, discount, explore);

            if (master != null)
            {
                master.UpdateScore(s.GetValue());
                master.UpdateGuiMetrics();
            }
            s.End();
        }