kiudee / cs-ranking

Context-sensitive ranking and choice in Python with PyTorch
https://cs-ranking.readthedocs.io
Apache License 2.0
66 stars 15 forks source link

Pareto: Genereate unique centroids, documentation, test #177

Closed timokau closed 4 years ago

timokau commented 4 years ago

Description

The Pareto problem generation re-used the same centroid for 10 times (which seems to be a bug) and generated invalid elements when n_instances was not a multiple of 10. This tries to fix these problems an adds some documentation on the things @kiudee cleared up for me. This is a result of https://github.com/kiudee/cs-ranking/pull/164#discussion_r522267387.

How Has This Been Tested?

Ran the new test, relying on CI for the rest.

Types of changes

Checklist: