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 omitted ids, write tests. #480

Closed
rgiordan opened this issue Dec 19, 2016 · 2 comments
Closed

Fix omitted ids, write tests. #480

rgiordan opened this issue Dec 19, 2016 · 2 comments
Assignees

Comments

@rgiordan
Copy link
Contributor

At some point the usage of omitted ids got broken. There are no unit tests, either.

julia> DeterministicVI.maximize_f(elbo_fft_opt, ea_fft, omitted_ids=[1])

ERROR: BoundsError: attempt to access 28-element Array{Float64,1} at index [29,1]
 in (::Celeste.DeterministicVI.##33#38)(::Array{Float64,1}, ::Array{Float64,1}) at /home/rgiordan/.julia/v0.5/Celeste/src/deterministic_vi/maximize_elbo.jl:67
@jeff-regier
Copy link
Owner

@jrevels is work on refactoring Transform.jl now. I was thinking we'd get rid of omitted_ids and keep_ids because of the complexity, and because it doesn't seem as necessary any more. If we want to restore that functionality, the way to do it is probably to define another transform, like the box constraints or the simplex constraint that removes certain ids.

Are you using omitted_ids often? Is restoring this functionality a high priority? (It would take resources away from other things.)

@rgiordan
Copy link
Contributor Author

rgiordan commented Dec 19, 2016 via email

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

2 participants