We now need to upgrade the decision code from the multi-armed bandit problem to a contextual bandit problem. Go ahead and jump into the editor and follow these steps:
- Locate the SimpleDecision script in the Assets/Simple/Scripts folder. Select the script and type Ctrl + D (Command + D on macOS) to duplicate the script. This will duplicate the script and cause an error. Not to worry; the error is just a duplicate name that we will fix shortly.
- Rename the new script ContextualDecision, and then double-click on it to open it in your code editor.
- Rename the class to ContextualDecision as follows:
public class ContextualDecision : MonoBehaviour, Decision
- Add or modify the variable declarations at the ...