This file contains 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
# coding: utf-8 | |
# # Getting Started | |
# | |
# First we need to figure out the details of keras and gyms input spec, especially the tensor's shape | |
# | |
# Note that for a numpy (**n-d**imensional) array, it has a `shape` attr which is a python tuple. For example, `s = (2,6,3,)` represents a $2 \times 6 \times 3$ tensor. | |
# | |
# Also note that `np.array` can convert a python array into a numpy array, with the *obvious* interpretation. For example, |
NewerOlder