SimilarImageLeakage.add_condition_similar_images_less_or_equal#

SimilarImageLeakage.add_condition_similar_images_less_or_equal(threshold: int = 0) SIL[source]#

Add condition - number of similar images is less or equal to the threshold.

The condition count how many unique images in test are similar to those in train.

Parameters
thresholdint , default: 0

Number of allowed unique images in test that are similar to train

Returns
SIL