Skip to content

Commit

Permalink
Make tf-mhcflurry.py actually fit a model
Browse files Browse the repository at this point in the history
  • Loading branch information
hammer committed Aug 1, 2016
1 parent 14e4fb0 commit 95d8a3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/tf-mhcflurry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
from keras.models import Sequential
from keras.layers import Dense, Activation
model = Sequential()
model.add(Dense(input_dim=9*21, output_dim=1))
model.add(Dense(input_dim=9*21, output_dim=1)) # TF backend segfaults here
model.add(Activation("sigmoid"))
model.compile(loss="mse", optimizer="rmsprop")

model.fit(training_hotshot, df_kmers[1], nb_epoch=5, batch_size=1)

0 comments on commit 95d8a3f

Please sign in to comment.