Example #1
0
    public override void AgentAction(float[] vectorAction, string textAction)
    {
        var action = (int)vectorAction[0];

        AddReward(bandit.PullArm(action));
        // Done();
    }
Example #2
0
    public override void AgentAction(float[] vectorAction, string textAction)
    {
        int action = (int)vectorAction[0];

        if (currentBandit)
        {
            AddReward(currentBandit.PullArm(action));
        }
    }