Skip to content

[WIP] first step in fixing minimum 2 required samples for fixing MLPRegress… https://github.com/scikit-learn/scikit-learn/issues/24713 #24787

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

Conversation

mohitthakur13
Copy link
Contributor

…or attribute error

Reference Issues/PRs

Fixes #24713

What does this implement/fix? Explain your changes.

Added an if loop to check 10% of input training data (X) is at least 2 - based on the comment by @glemaitre in the _validate_data function in the BaseEstimator class in sklearn/base.py

If this is the correct approach to design the fix, what needs to be further done:

  1. manual selection in case 2 >= len(X) < 10
  2. Testing

Any other comments?

Any further comments or directions will be appreciated to design a proper fix.

@mohitthakur13 mohitthakur13 changed the title [WIP] first step in fixing minimum 2 required samples for fixing MLPRegress… [WIP] first step in fixing minimum 2 required samples for fixing MLPRegress… https://github.com/scikit-learn/scikit-learn/issues/24713 Oct 29, 2022
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.

AttributeError: 'MLPRegressor' object has no attribute '_best_coefs'
1 participant