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

doesn't catch some propocessing error of skelarn #14

Open
caprone opened this issue Oct 30, 2022 · 4 comments
Open

doesn't catch some propocessing error of skelarn #14

caprone opened this issue Oct 30, 2022 · 4 comments

Comments

@caprone
Copy link

caprone commented Oct 30, 2022

"ValueError: Minimum of desired feature range must be smaller than maximum. Got (0.0, 0.0)." after useless 3 hours of training on a very smaller dataset...too slow a, not verbose...and bugged

@Javihaus
Copy link
Contributor

Can I see the dataset?

@filiu97
Copy link

filiu97 commented Jan 16, 2023

I've had the same error. Could you post the fix for it?

Thanks.

@caprone
Copy link
Author

caprone commented Feb 16, 2023

same error...

@caprone
Copy link
Author

caprone commented Feb 16, 2023

ok, seems that issue is only for zero variance features...then MinMaxScaler raises that ValueError;
we need to delete all zero variance features from our dataset(that is ever a good idea):

def remove_constant_value_features(df):
return [e for e in df.columns if df[e].nunique() == 1]

feat to remove:

drop_col = remove_constant_value_features(train)

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

No branches or pull requests

3 participants