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_modelbut it enforces theclfto 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
Trueif the object inherits fromsklearn.base.BaseEstimator,Falseotherwise.