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

Fix resize #85

Merged
merged 2 commits into from
Jul 26, 2019
Merged

Fix resize #85

merged 2 commits into from
Jul 26, 2019

Conversation

xukai92
Copy link
Member

@xukai92 xukai92 commented Jul 26, 2019

No description provided.

@xukai92 xukai92 requested a review from yebai July 26, 2019 15:54
@@ -227,7 +227,7 @@ function Base.resize!(
if length(θ) != length(dpc.var)
@assert dpc.ve.n == 0 "Cannot resize a var estimator when it contains samples."
dpc.ve = WelfordVar(T, length(θ))
dpc.var = zeros(T, length(θ))
dpc.var = ones(T, length(θ))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@yebai
Copy link
Member

yebai commented Jul 26, 2019

Seems that some tests are broken?

@xukai92
Copy link
Member Author

xukai92 commented Jul 26, 2019

I guess we were testing against a vector of zeros for the function I fixed? I am not with my computer ATM. Can you check and maybe fix the test?

@yebai
Copy link
Member

yebai commented Jul 26, 2019

Sure - Fixed.

@yebai yebai merged commit 48287bc into master Jul 26, 2019
@xukai92
Copy link
Member Author

xukai92 commented Jul 26, 2019

Thanks!

@xukai92
Copy link
Member Author

xukai92 commented Jul 26, 2019

Shall we register it?

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.

2 participants