SimilarImageLeakage.add_condition_similar_images_not_more_than#

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

Add new condition.

Add condition that will check the number of similar images is not greater than X. 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