Skip to content
Snippets Groups Projects
Commit 18567f5b authored by David Josef Schmidt's avatar David Josef Schmidt
Browse files

fix integer division and make_trainable

parent 359dd7c4
No related branches found
No related tags found
No related merge requests found
......@@ -25,13 +25,13 @@ def ReadInData():
def make_trainable(model, trainable):
''' Freezes/unfreezes the weights in the given model for each layer'''
for layer in model.layers:
model.trainable = trainable
layer.trainable = trainable
model.trainable = trainable
def rectangular_array(n=9):
""" Return x,y coordinates for rectangular array with n^2 stations. """
n0 = (n - 1) / 2
n0 = (n - 1.0) / 2.0
return (np.mgrid[0:n, 0:n].astype(float) - n0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment