Skip to content

Commit afdd2d8

Browse files
authored
Fix value bug that affects the evaluation service (#222)
* Fix value bug that affects the evaluation service * Update Changelog
1 parent c7353f0 commit afdd2d8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.6.3](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.6.3) - 2021-02-08
7+
## [0.6.4](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.6.4) - 2021-02-16
8+
9+
### Fixes
10+
- Categorization metrics are patched to run properly on Validate evaluation service
11+
12+
## [0.6.3](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.6.3) - 2021-02-15
813

914
### Added
1015
- Add categorization f1 score to metrics

nucleus/metrics/categorization_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def value(self):
4040
# TODO: Change task.py interface such that we can return label matching
4141
# NOTE: Returning 1 if all taxonomy labels match else 0
4242
value = f1_score(
43-
annotation_labels, prediction_labels, average=self.f1_method
43+
list(annotation_labels), list(prediction_labels), average="macro"
4444
)
4545
return value
4646

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exclude = '''
2121

2222
[tool.poetry]
2323
name = "scale-nucleus"
24-
version = "0.6.3"
24+
version = "0.6.4"
2525
description = "The official Python client library for Nucleus, the Data Platform for AI"
2626
license = "MIT"
2727
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]

0 commit comments

Comments
 (0)