Closed
Description
Description
TransformedTargetRegressor
returns the wrong _estimator_type
when a classifier is passed as the regressor parameter.
Steps/Code to Reproduce
TransformedTargetRegressor(regressor=LogisticRegression())._estimator_type
Expected Results
'classifier'
Actual Results
'regressor'
Versions
System:
python: 3.7.2 (default, Jan 2 2019, 17:07:39) [MSC v.1915 64 bit (AMD64)]
executable: C:\Users\david\Anaconda3\envs\laserag_py37_skl0202\python.exe
machine: Windows-10-10.0.17763-SP0
Python dependencies:
pip: 18.1
setuptools: 41.0.1
sklearn: 0.22
numpy: 1.15.4
scipy: 1.1.0
Cython: 0.29.13
pandas: 0.25.1
matplotlib: 3.0.2
joblib: 0.14.0
Built with OpenMP: True
Metadata
Metadata
Assignees
Labels
No labels