-
Notifications
You must be signed in to change notification settings - Fork 141
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
Correction in base.py file #3
Comments
eriq-augustine
added a commit
to eriq-augustine/scikit-kge
that referenced
this issue
Jul 12, 2017
…nick/holographic-embeddings#4 for a reference to this issue.
eriq-augustine
added a commit
to eriq-augustine/scikit-kge
that referenced
this issue
Jul 12, 2017
…nick/holographic-embeddings#4 for a reference to this issue.
I still see same self.batch_size = np.ceil(len(xys) / self.nbatches) |
I still found this mistake: |
This also happened with me for the following snippet in base.py.
I just introduced the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here: https://github.com/mnick/scikit-kge/blob/master/skge/base.py#L130
self.batch_size = np.ceil(len(xys) / self.nbatches)
self.batch_size = int(np.ceil(len(xys) / self.nbatches))
In the latest stable version of numpy (1.13.0)
np.ceil()
returns a float value not int.Because of this error, my code was crashing with:
Please make the change.
The text was updated successfully, but these errors were encountered: