Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

[SC] invalid k for predict_topk should error out #2886

Closed
jakesabathia2 opened this issue Jan 2, 2020 · 0 comments
Closed

[SC] invalid k for predict_topk should error out #2886

jakesabathia2 opened this issue Jan 2, 2020 · 0 comments
Assignees
Milestone

Comments

@jakesabathia2
Copy link
Collaborator

pred = model.predict_topk(train_set, k=0)
pred = model.predict_topk(train_set, k=-1)

produces results like k=class_num. Should throw error instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant