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

Public API for is_maximizable_metric #1915

Closed
Innixma opened this issue Nov 12, 2021 · 1 comment
Closed

Public API for is_maximizable_metric #1915

Innixma opened this issue Nov 12, 2021 · 1 comment

Comments

@Innixma
Copy link

Innixma commented Nov 12, 2021

(Related Issue: #1890)
(CatBoost version v1.0.3)

Following the logic of this commit, to determine if a string eval_metric is_max_optimal==True I can do the following:

eval_metric = 'Accuracy'
from catboost._catboost import is_maximizable_metric
is_max_optimal = is_maximizable_metric(eval_metric)

I can also do:

from catboost import metrics
eval_metric = metrics.Accuracy()
is_max_optimal = eval_metric.is_max_optimal()

Given eval_metric = 'Accuracy', is there:

  1. A way to do the same as is_max_optimal = is_maximizable_metric(eval_metric) without having to use a private API?

or

  1. A way to convert this automatically to the catboost metric object catboost.metrics.Accuracy() via the string alone?

In general I want to avoid using a private API function.

arcadia-devtools pushed a commit that referenced this issue Nov 15, 2021
ref:c43a05a1fdebb2e7cac484c860243e52f8b7921d
@LyzhinIvan
Copy link
Collaborator

is_maximizable_metric and is_minimizable_metric are public now.

robot-piglet pushed a commit that referenced this issue Jan 16, 2023
ref:c43a05a1fdebb2e7cac484c860243e52f8b7921d
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

No branches or pull requests

2 participants