fatf.transparency.sklearn.tools
.is_sklearn_model_instance¶
-
fatf.transparency.sklearn.tools.
is_sklearn_model_instance
(clf: object) → bool[source]¶ Checks whether a class instance (object) is a scikit-learn predictor.
New in version 0.0.2.
This function is similar to
fatf.transparency.sklearn.tools.is_sklearn_model
but it enforces theclf
to be an instance of an object in addition to checking whether it inherits fromsklearn.base.BaseEstimator
.- Parameters
- clfobject
A Python object (class instance) to be checked.
- Returns
- is_valid_modelboolean
True
if the object inherits fromsklearn.base.BaseEstimator
,False
otherwise.