Skip to content

Commit

Permalink
New seuss.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
Grayson Neihaus authored and Grayson Neihaus committed Oct 17, 2018
1 parent b66f852 commit 57ee18c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions seuss.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# In[2]:


filename = "drseuss_new.txt"
filename = "data/combinedText.txt"
raw_text = open(filename).read()


Expand Down Expand Up @@ -45,7 +45,7 @@

# In[9]:


print("9 Initated")
# prepare the dataset of input to output pairs encoded as integers
seq_length = 100
dataX = []
Expand All @@ -60,7 +60,7 @@


# In[10]:

print('10 initiated')

# reshape X to be [samples, time steps, features]
X = numpy.reshape(dataX, (n_patterns, seq_length, 1))
Expand All @@ -84,7 +84,7 @@
model.add(Dense(y.shape[1], activation='softmax'))
model.compile(loss='categorical_crossentropy', optimizer='adam')


print("model compiled")
# In[12]:


Expand All @@ -96,7 +96,7 @@

# In[13]:


print("nuke launching")
model.fit(X, y, epochs=1000, batch_size=128, callbacks=callbacks_list, verbose=1)


0 comments on commit 57ee18c

Please sign in to comment.