-
Notifications
You must be signed in to change notification settings - Fork 608
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
leave_k_out_split produces incorrect values in test set #639
Comments
Existing test can also be made to fail occasionally if implicit/tests/evaluation_test.py Line 18 in 871e0c7
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed odd behavior in leave_k_out_split - specifically, under certain circumstances (many rows with one value?), the number returned for the withheld test set value is different from the actual value. This causes
train + test
to fail to reconstruct the original matrix.Script to reproduce:
Created at 2022-12-23 13:59:28 CST by reprexlite v0.5.0
I believe the issue is in
_take_tails
- the returnedtest_idx
array has multiple copies of the first user index returned, so we end up with a test set value that is copied multiple times.(As an aside, the call to
_take_tails
whenshuffled=True
does not pass on therng
, so the random state cannot be maintained.)The text was updated successfully, but these errors were encountered: