Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

handle model deploy when no metrics to compare#1289

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
montanalow merged 4 commits intopostgresml:masterfromChuckHend:master
Jan 18, 2024

Conversation

ChuckHend
Copy link
Contributor

@ChuckHendChuckHend commentedJan 17, 2024
edited
Loading

The autodeploy feature deploys the newly trained model only if thef1 score is higher than the model that is currently deployed. However, there can be cases where we aren't able to compute thef1 score, such as when the test set only contains positive labels (results in divide by zero). This can happen if the training data is sorted by labels in Postgres andtest_sampling => 'first', or if its just a horribly unbalanced training set and some bad luck withtest_sampling => 'random'.

In either case, there's legitimate reasons that the f1 score does not exist. So, rather than crash we can do two things;

  1. not supersede the currently deployed -- if we cant compute the metrics, I think its safe to assume its not better than the currently deployed model
  2. give user a meaningful warning log so they can troubleshoot

@montanalowmontanalow marked this pull request as ready for reviewJanuary 17, 2024 06:08
@montanalowmontanalow merged commit1882ca3 intopostgresml:masterJan 18, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ChuckHend@montanalow

[8]ページ先頭

©2009-2025 Movatter.jp