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

ENH: Improve error message for vak.split.algorithms.brute_force #586

Open
NickleDave opened this issue Nov 5, 2022 · 0 comments
Open

ENH: Improve error message for vak.split.algorithms.brute_force #586

NickleDave opened this issue Nov 5, 2022 · 0 comments
Assignees
Labels
ENH: enhancement enhancement; new feature or request

Comments

@NickleDave
Copy link
Collaborator

@lmpascual ran into an issue where this error message got thrown by vak.split.algorithms.brute_force

image

"Could not find subsets of sufficient duration in "

For a user who doesn't have some of the context of what prep is doing under the hood here, this is kind of confusing.

It might sound like it's telling them they need to have 5000 renditions of a certain syllable, for instance.

The explanation should be a bit clearer, with more context. Something like, "The algorithm that creates splits of the dataset for training, validation, etc., did not converge in the maximum number of iterations". It should also include information to help the user fix the problem, such as: "Check that your labelset does not include vary rare labels, which may make it hard to find splits that all contain at least one instance of each label. You might also consider removing any segments labeled as a 'background' or 'trash' category if you want the trained model to ignore those classes; if the segments are removed they will be given the default 'background' label instead, as long as you have unlabeled segments in your dataset such as silent gaps between vocalizations."

@NickleDave NickleDave added the ENH: enhancement enhancement; new feature or request label Nov 5, 2022
@NickleDave NickleDave self-assigned this Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ENH: enhancement enhancement; new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant