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

[Feature request]: Add 10% training omission rate #33

Open
1 task done
rogerio-bio opened this issue Dec 4, 2023 · 1 comment
Open
1 task done

[Feature request]: Add 10% training omission rate #33

rogerio-bio opened this issue Dec 4, 2023 · 1 comment
Assignees
Labels
new feature New feature or request

Comments

@rogerio-bio
Copy link

Describe the new feature

Hi ,

It's possible to include the 10% training omission rate in the function thresholds?

Thank you

Does the feature request already exist?

  • I have check if the same feature request already exists
@rogerio-bio rogerio-bio added the new feature New feature or request label Dec 4, 2023
@anackr
Copy link

anackr commented Jun 20, 2024

I did it like this

conf_matrix <- confMatrix(model, test = data, type = 'cloglog') # creates confusion matrix
conf_matrix$omission_rate <- conf_matrix$fn / (conf_matrix$tp + conf_matrix$fn) # creates OR column
closest_row <- conf_matrix[abs(conf_matrix$omission_rate - 0.1) <= 0.01, ] # picks columns with <= 10% OR
closest_row$specificity <- closest_row$tn / (closest_row$tn + closest_row$fp) # creates specificity column
best_row <- closest_row[which.max(closest_row$specificity), ] # selects the row of 10% OR with maximum specificity 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants