Skip to content

Commit

Permalink
fix(#1238): show prediction labels when annotating rule (#1239)
Browse files Browse the repository at this point in the history
This PR shows prediction labels when annotating rule in Weak Supervision

Closes #1238

* fix(metrics): compute dataset labels as python metric

* test: fix tests

* fix: compute dataset label properly

* fix show all labels for empty query view

* empty query

* refactor: revert comp. changes and compute labels in model

* chore: lint fix

Co-authored-by: Francisco Aranda <francisco@recogn.ai>
(cherry picked from commit 6f19e40)
  • Loading branch information
leiyre authored and frascuchon committed Mar 25, 2022
1 parent ca010b5 commit e01a5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rubrix/server/tasks/text_classification/metrics.py
Expand Up @@ -4,7 +4,7 @@
from sklearn.metrics import precision_recall_fscore_support
from sklearn.preprocessing import MultiLabelBinarizer

from rubrix.server.tasks.commons.metrics import CommonTasksMetrics
from rubrix.server.tasks.commons.metrics import CommonTasksMetrics, GenericRecord
from rubrix.server.tasks.commons.metrics.model.base import (
BaseMetric,
PythonMetric,
Expand Down

0 comments on commit e01a5e9

Please sign in to comment.