deep-learning-coursera
deep-learning-coursera copied to clipboard
changes numpy array dimensions
Existing model is different than loaded model in the coursework. The array needs the addition:
source = np.array(list(map(lambda x: to_categorical(x, num_classes=len(human_vocab)), source)), ndmin=3)
to fix dimensional issues