Skip to content

Commit 7a43676

Browse files
committed
added exceptions to test
1 parent 58513a1 commit 7a43676

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/linearboost/linear_boost.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ def _more_tags(self) -> dict[str, bool]:
241241
"check_sample_weight_equivalence_on_dense_data": (
242242
"In LinearBoostClassifier, setting a sample's weight to 0 can produce a different "
243243
"result than omitting the sample. Such samples intentionally still affect the data scaling process."
244+
),
245+
"check_sample_weights_invariance": (
246+
"In LinearBoostClassifier, a zero sample_weight is not equivalent to removing the sample, "
247+
"as samples with zero weight intentionally still affect the data scaling process."
244248
)
245249
},
246250
}

0 commit comments

Comments
 (0)