- Mathematics of Deep Learning - Rene Vidal, Joan Bruna, Raja Giryes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class Board(object): | |
def __init__(self, size=64, random_seed=0): | |
self._size = size | |
self._state = np.zeros((size, ), dtype=bool) | |
self._rand_gen = np.random.RandomState(random_seed) | |
@property |