Skip to content

Correction in base.py file #3

@svjan5

Description

@svjan5

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:

TypeError: slice indices must be integers or None or have an index method

Please make the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions