mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Resolve undefined names
This commit is contained in:
@ -29,6 +29,12 @@ IMAGE_MAP_DATA_FILE = os.path.join(NN_DIRECTORY, "image_map")
|
||||
# DEFAULT_LAYER_SIZES = [28**2, 80, 10]
|
||||
DEFAULT_LAYER_SIZES = [28**2, 16, 16, 10]
|
||||
|
||||
try:
|
||||
xrange # Python 2
|
||||
except NameError:
|
||||
xrange = range # Python 3
|
||||
|
||||
|
||||
class Network(object):
|
||||
def __init__(self, sizes, non_linearity = "sigmoid"):
|
||||
"""The list ``sizes`` contains the number of neurons in the
|
||||
|
Reference in New Issue
Block a user