In Sklearn, is there a way to print out an estimator's class name?
I have tried to use the name attribute but that is not working.
from sklearn.linear_model import LogisticRegression
def print_estimator_name(estimator):
print(estimator.__name__)
#Expected Outcome:
print_estimator_name(LogisticRegression())
I would expect this to print out the classifier name as above