Skip to content

np.floor instead of np.ceil #8

@psl-schaefer

Description

@psl-schaefer

i = furthest_sum(X[:, I], noc, [int(np.ceil(len(I) * np.random.rand()))])

Why are you using np.ceil here? Because it is possible to select and $i$ that is not in the data leading to an index error.

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