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

Average Precision Score #664

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

mail4umar
Copy link
Collaborator

@mail4umar mail4umar commented Jul 5, 2023

  • added code
  • works with following averaging methods: weighted, micro, macro and None

It works with the following syntax:

average_precision_score("y_true_num", ["y_prob0","y_prob1","y_prob2"], average="micro",vdf,labels=['0','1','2'])

where "y_true_num" is the name of the column with actual values
["y_prob0","y_prob1","y_prob2"] is the list of column names with probability values for each of the different classes
['0','1','2'] are the lsit of respective labels

close #663

- added code
- works with following averaging methods:
weighted, micro, macro and None
@mail4umar mail4umar added New Feature New feature request. Machine Learning - Model Evaluation Cross Validation, HP Tuning, ... labels Jul 5, 2023
@mail4umar mail4umar requested a review from oualib July 5, 2023 15:49
@mail4umar mail4umar self-assigned this Jul 5, 2023
@oualib oualib merged commit e77ec94 into vertica:master Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Machine Learning - Model Evaluation Cross Validation, HP Tuning, ... New Feature New feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Classification Metric - average_precision_score
2 participants