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

feat: [TMX-1460] add function mlflow_decision_to_promote #42

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

AlexMS2015
Copy link

Summary

Add function mlflow_decision_to_promote.

Type

Check one that is relevant

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature and improvements (non-breaking change which adds/improves functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Code Refactoring (internal change which is not user facing)
  • Documentation
  • Test, CI, or build

Description

mlflow_decision_to_promote function added to mlflow_model_utils. This function is a wrapper for mlflow_promote_model but first decides whether promotion should happen based on the environment and a metric compared between champion and challenger models.

Jira Link

https://hipagesgroup.atlassian.net/browse/TMX-1460

Checklist before submitting:

  • Have you followed the general guidelines of GitFlow or GitHub Flow?
  • Have you verified no Secrets/Credentials present in commit ?
  • Have you updated test cases relevants for your code changes?
  • Have you verified all test are passing?
  • Have you verified you code is compliant with best practices?

@hip-sec
Copy link

hip-sec commented Dec 20, 2024

Snyk checks have failed. 3 issues have been found so far.

Icon Severity Issues
Critical 1
High 2
Medium 0
Low 0

security/snyk check is complete. 3 issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@patch(
"hip_data_ml_utils.mlflow_databricks.mlflow_model_utils.mlflow_promote_model" # noqa: E501
)
def test_decision_to_promote(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to be consistent, the prefix is test_, + function_name.

so it will be test_mlflow_decision_to_promote

@AlexMS2015 AlexMS2015 closed this Jan 5, 2025
@AlexMS2015
Copy link
Author

Closed pending local unit testing rather than running the full CI. This was not previously possible.

@AlexMS2015 AlexMS2015 reopened this Jan 6, 2025
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

Successfully merging this pull request may close these issues.

3 participants