Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

changes numpy array dimensions #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tpt5cu
Copy link

@tpt5cu tpt5cu commented Feb 1, 2019

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

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant