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

Better numpy compatibility #48

Merged

Conversation

Hi-king
Copy link
Collaborator

@Hi-king Hi-king commented Oct 14, 2023

No description provided.

@Hi-king
Copy link
Collaborator Author

Hi-king commented Oct 14, 2023

This PR follows #47

@Hi-king Hi-king changed the title Draft: Better numpy compatibility & can be used with recent python Draft: Better numpy compatibility & can be used with python 3.10 Oct 14, 2023
Copy link
Collaborator

@matsui528 matsui528 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -22,9 +22,9 @@ def fit(self, x_train):
self.Ds = int(D / self.M)
assert self.trained_encoder is None, "fit must be called only once"

codewords = numpy.zeros((self.M, self.Ks, self.Ds), dtype=numpy.float)
codewords = numpy.zeros((self.M, self.Ks, self.Ds), dtype=float)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't aware that the numpy.float style has been deprecated!

@Hi-king Hi-king changed the title Draft: Better numpy compatibility & can be used with python 3.10 Better numpy compatibility Oct 16, 2023
@matsui528 matsui528 merged commit 3cbcce5 into DwangoMediaVillage:master Oct 16, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants