Created
June 23, 2019 23:32
-
-
Save StrikingLoo/e537b031d91b715596db7641b4cdd057 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chars_np = np.asarray(chars) | |
| def output_idx(i): | |
| return np.argmax(model.predict([[X[i]]])[0], 1) | |
| def output_str(i): | |
| return ''.join(list(chars_np[output_idx(i)])) | |
| output_str(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment