-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
ENH: Weight support for np.var #5164
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
Comments
Check out and work on gh-4960, it might be pretty much done even, but a couple of extra eyes are probably necessary in any case. |
Nvm. you mean var not covariance, but that might have similar problems, at least when you get into |
A weighted variance is calculated in exactly the same way as a single-variable weighted covariance. |
Weights are available for cov since #4960 has been merged. @MechCoder Check it out. It isn't quite as convenient as the |
Sorry for the non-replying. I shall have a look right now. |
I believe the discussion here is similar to #8581, so this can be closed in favor of that issue. Please reopen if this is not the case. |
Is there any reason why there is no
weights
keyword fornp.var
similar tonp.average
? We sometimes need to custom code for this in sklearn sometimes, for example, HereIf this is agreed upon, I can submit a Pull Request.
The text was updated successfully, but these errors were encountered: