8000 TransformedTargetRegressor returns the wrong _estimator_type with a classifier · Issue #15872 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
TransformedTargetRegressor returns the wrong _estimator_type with 8050 a classifier #15872
Closed
@dabana

Description

@dabana

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0