Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor examples to use np.ndarray over np.matrix #32

Open
rLinks234 opened this issue Nov 29, 2019 · 0 comments
Open

Refactor examples to use np.ndarray over np.matrix #32

rLinks234 opened this issue Nov 29, 2019 · 0 comments

Comments

@rLinks234
Copy link
Contributor

numpy.matrix has been deprecated in favor of using np.ndarray (i.e., using np.array, np.asarray, etc). There are some subtle differences in behavior between the two, which makes some of the examples a bit more hairy than needed. As of the time of when this issue was filed, the pending hebi-py release (1.1.0) internally drops almost all use of np.matrix in favor of the array counterparts. No public API calls of hebi-py should longer return np.matrix; consequently, we should not be using them in the examples.

For some more info, see this stack overflow post: https://stackoverflow.com/questions/53254738/deprecation-status-of-the-numpy-matrix-class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant