AllIsHackedOff

Just a memo, just a progress

ヒューリスティックス

Bandit

とりあえずε-greedy import random import numpy as np class Arm: def __init__(self, prob, no): self.probability = prob self.no = no self.hit_count = 0 self.total_count = 0 # retrun boolean value def lot(self): random_float = random.random() …