Skip to content
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

Is it possible to calculate the total number of all possible splits? #16

Closed
whatever60 opened this issue Jul 20, 2021 · 2 comments
Closed

Comments

@whatever60
Copy link

Love this repo, it spares me a lot effort.

Here is my question (or concern).

When we don't enforce any constraint when generating KFold, the number of all possible splits is the largest and simple to calculate.

When we only have one label and enforce the splits to be stratified, i.e. StratifiedKFold, this number drops, but normally will still be large enough to generate a diverse set of splits. Again, this number can be calculated with some simple combinatorics.

However, when stratification on multiple labels is enforced (the goal of this repo), things become more complicated and I am worried that if there are too much labels, say hundreds of them, there won't be too many possible splits that can satisfy the stratification constraint😟.

So my question is,

  • Does my concern make sense?
  • Can we calculate the total number of possibilities?

Looking forward to reply.

@trent-b
Copy link
Owner

trent-b commented Jul 24, 2021

Hi @wusuowei60, thank you for your question. I agree with your concern. The algorithm does its best to perform multilabel stratification as described by Sechidis et al., but it does not make any guarantees on the quality of its splits. Given the iterative nature of the algorithm I am not entirely sure about the ability to calculate the total number of possibilities. I'll have to think on this and am open to suggestions on this calculation.

@trent-b
Copy link
Owner

trent-b commented Jul 29, 2022

Closing since there has not been additional activity.

@trent-b trent-b closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants