Skip to content

Commit 18696eb

Browse files
author
Anthony Krivonos
authored
Allow denormalized scores in EvaluationResult (#382)
1 parent 4180275 commit 18696eb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

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

8+
## [0.15.3](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.15.3) - 2023-03-02
9+
10+
### Changed
11+
- Allow denormalized scores in `EvaluationResult`s
12+
813
## [0.15.2](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.15.2) - 2023-02-10
914

1015
### Changed

nucleus/validate/data_transfer_objects/scenario_test_evaluations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def is_item_or_scene_provided(
2727
)
2828
return values
2929

30-
@validator("score", "weight")
30+
@validator("weight")
3131
def is_normalized(cls, v): # pylint: disable=no-self-argument
3232
if 0 <= v <= 1:
3333
return v
3434
raise ValueError(
35-
f"Expected evaluation score and weights to be normalized between 0 and 1, but got: {v}"
35+
f"Expected evaluation weights to be normalized between 0 and 1, but got: {v}"
3636
)

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.15.2"
24+
version = "0.15.3"
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)