Merge nucleic/sleek-ember-seal-uady into dev
This commit is contained in:
@@ -12,6 +12,16 @@ import train
|
||||
|
||||
|
||||
class MetricsTests(unittest.TestCase):
|
||||
def test_boundary_training_weight_is_opt_in(self):
|
||||
self.assertEqual(
|
||||
2.0,
|
||||
train.training_weight({"slice": "boundary"}, boundary_weight=2.0),
|
||||
)
|
||||
self.assertEqual(
|
||||
1.0,
|
||||
train.training_weight({"slice": "core"}, boundary_weight=2.0),
|
||||
)
|
||||
|
||||
def test_classification_metrics_include_every_label(self):
|
||||
actual = list(range(8))
|
||||
predicted = [0, 1, 2, 3, 4, 5, 6, 0]
|
||||
|
||||
Reference in New Issue
Block a user