Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added estimator_type property #36

Merged
merged 1 commit into from
Aug 9, 2023
Merged

added estimator_type property #36

merged 1 commit into from
Aug 9, 2023

Conversation

perib
Copy link
Collaborator

@perib perib commented Aug 9, 2023

[please review the Contribution Guidelines prior to submitting your pull request. go ahead and delete this line if you've already reviewed said guidelines.]

What does this PR do?

adds a _estimator_type property to both tpotestimators to make it consistent with other sklearn estimators.

@property
def _estimator_type(self):
    return self.fitted_pipeline_._estimator_type

Any background context you want to provide?

After the new autosklearn update, this property used by some scorers to determine whether the pipeline was a classifier or regressor. These scorers would throw an error when used with either tpotestimators.

@perib perib merged commit e926444 into EpistasisLab:dev Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant