Skip to content

Fix negative metric values#835

Open
neelima-bhaktha wants to merge 1 commit into
mljar:masterfrom
neelima-bhaktha:fix-f1-negative-leaderboard
Open

Fix negative metric values#835
neelima-bhaktha wants to merge 1 commit into
mljar:masterfrom
neelima-bhaktha:fix-f1-negative-leaderboard

Conversation

@neelima-bhaktha

Copy link
Copy Markdown

This PR fixes an issue where calling get_leaderboard(original_metric_values=True) still returned negative optimization metrics (like F1 score).

Changes
Updated the get_leaderboard function in supervised/base_automl.py to cleanly multiply the metric_value column by -1.0 and clean up any -0.0 floating-point artifacts when original_metric_values is set to True. Tested locally using a custom classification script, and the leaderboard values now display as positive numbers correctly.

Closes #123 (Replace 123 with the actual issue number you are fixing)

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.

Add blueprint model

1 participant