January 2018
Intermediate to advanced
474 pages
10h 23m
English
We implement text generation LSTM in Keras with the following steps:
# get the datax_train, y_train = text8.seq_to_xy(seq=text8.part['train'],n_tx=n_x,n_ty=n_y)# reshape input to be [samples, time steps, features]x_train = x_train.reshape(x_train.shape[0], x_train.shape[1],1) ...
Read now
Unlock full access