-
Notifications
You must be signed in to change notification settings - Fork 21
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
Crashes when a feature variance is 0 #10
Comments
any news? |
I'm working on the project again. I'll have a look at this. |
What should we do when the standard deviation is 0 ? Subtract the mean without scaling? I'm going to check what R does. |
R also throws an error if the dataset cannot be scaled because of a constant column. Is there precedent in other libraries / languages? What do they do in this case? |
I think if there are multiple features, the one with no variance should just be ignored as it doesn't contribute anything to PCA. |
It would be more desirable if it can skip features with zero variance instead of crashing.
I have written some code to do the check myself, but it feels very inefficient. Suggestion on improvement is welcome
The text was updated successfully, but these errors were encountered: