Ejemplo n.º 1
0
 static Qmatrix()
 {
     //Default limit
     e_initial     = InitialSettings.e();
     episode_limit = InitialSettings.episode_limit();
     step_limit    = InitialSettings.step_limit();
 }
Ejemplo n.º 2
0
        public Qmatrix()
        {
            //This is our q-matrix
            matrix_data   = new Dictionary <PerceptionState, ValueSet>();
            did_we_update = false;

            e_current = InitialSettings.e(); //Epsilon; do we explore or exploit. Random factor for taking a best move or random move.
            y_current = InitialSettings.y(); //Gamma; our discounted rate.
            n_current = InitialSettings.n(); //The learning rate
            y         = InitialSettings.y();

            step_limit    = InitialSettings.step_limit(); //limits
            episode_limit = InitialSettings.episode_limit();
        }