Skip to content

Instantly share code, notes, and snippets.

@rpalo
Created August 21, 2019 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpalo/1c722dabf655ed36ece9a2cc49dfea4d to your computer and use it in GitHub Desktop.
Save rpalo/1c722dabf655ed36ece9a2cc49dfea4d to your computer and use it in GitHub Desktop.
testing = testing.reshape((75, 4, 1))
# This is equivalent to doing:
testing = np.expand_dims(testing, axis=2)
# Or even:
testing = testing[:, :, np.newaxis]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment