This is documentation for an old release of Scikit-learn (version 0.21). Try the latest stable release (version 1.6) or development (unstable) versions.

This is documentation for an old release of Scikit-learn (version 0.21). Try the latest stable release (version 1.6) or development (unstable) versions.

sklearn.utils.testing.assert_not_in

sklearn.utils.testing.assert_not_in(member, container, msg=None)[source]

Just like self.assertTrue(a not in b), but with a nicer default message.