gsganden / model_inspector

A uniform interface to a curated set of methods for inspecting machine learning models
https://gsganden.github.io/model_inspector/
Apache License 2.0
4 stars 0 forks source link

Allow `BaseSearchCV` inspectors to access methods for underlying model #8

Open gsganden opened 2 years ago

gsganden commented 2 years ago

It would be nice if an inspector for a GridSearchCV object wrapping a DecisionTreeClassifier could use .show_model(), for instance. Currently it only has access to plotting methods for the underlying estimator.

gsganden commented 2 years ago

I am not planning to address this issue in the short run because I do not see a reasonably clean way to do it and it is only a matter of convenience -- you can use .best_estimator_ on the GridSearchCV object to access the underlying estimator, and create an inspector for the estimator.