-
Notifications
You must be signed in to change notification settings - Fork 190
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
zscore fails when using whitenoise as an input. #1972
Comments
This functionality was implemented here: |
Interesting! I'll also take a look! Thanks for tracking this down @h-mayorquin |
I thought more about this this morning. It is just a statistical problem with the test. This is not a bug. Then you need a larger n. If you calculate the standard error of the mean for the chunks available you get that the standard error is not small enough for the test above to be sound. Plus, casting to int is not a linear function (it behaves like floor for positives and like ceiling for negatives) which also increases the standard deviation of the samples and will make the standard error larger in practice. Here, I estimate taking the mean 1_000 times with 100_000 samples. You can see that most of the estimates are farther from the true (which is zero) than 1 and therefore will fail on the test above. estimates = (256 * np.random.randn(int(5e4), 1000).astype("int16")).mean(axis=0)
plt.hist(estimates, bins=100)
plt.xlabel("Estimated mean from the process")
plt.ylabel("Frequency") |
I would like for us to shutdown this test and slowly deprecate the int range functionality in Within the kilosort pipeline or anywhere else if the need for an operation like this arises the operation can be performed by composing the casting and scaling operations already available in the pre-processing module. No need for flags. Simliar to previous discussions: |
Related to this #1971:
Bug:
For most seeds with lazy this fails.
@samuelgarcia you are the one that implemented this range thing for z-scores, any idea on why this might be?
The text was updated successfully, but these errors were encountered: