check_scorer_lower_is_better¶
yohou.testing.check_scorer_lower_is_better(scorer)
¶
Check the lower_is_better tag is a boolean.
Validates only that the scorer exposes a boolean lower_is_better tag;
it does not assert a particular value, so the caller is responsible for
pinning the expected direction (e.g. via expected_tags) elsewhere.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
scorer
|
BaseScorer
|
Scorer instance |
required |
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If lower_is_better is not a boolean |