January 2020
Intermediate to advanced
432 pages
10h 18m
English
Since this is our first example, make sure your Python environment is set to go. Again for simplicity, we prefer Anaconda. Make sure you are comfortable coding with your chosen IDE and open up the code example, Chapter_1_1.py, and follow along:
import randomreward = [1.0, 0.5, 0.2, 0.5, 0.6, 0.1, -.5]arms = len(reward)episodes = 100learning_rate = .1Value = [0.0] * armsprint(Value)
Read now
Unlock full access