deep-learning-coursera icon indicating copy to clipboard operation
deep-learning-coursera copied to clipboard

changes numpy array dimensions

Open tpt5cu opened this issue 5 years ago • 0 comments

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

tpt5cu avatar Feb 01 '19 20:02 tpt5cu