Skip to content

DOCS - Adding in explanation of counter intuitive behaviour of Logp#2490

Merged
springcoil merged 1 commit intomasterfrom
2489
Aug 9, 2017
Merged

DOCS - Adding in explanation of counter intuitive behaviour of Logp#2490
springcoil merged 1 commit intomasterfrom
2489

Conversation

@springcoil
Copy link
Contributor

@springcoil springcoil commented Aug 9, 2017

I've screwed up this branch - definitely don't merge yet.

  • Fixed now.

@springcoil
Copy link
Contributor Author

@junpenglao I'm a bit confused about the documentation - do I submit the ipynb with the cells run or does someone else run them?

@springcoil springcoil changed the title WIP - Docs comparison DOCS - Adding in explanation of counter intuitive behaviour of Logp Aug 9, 2017
@junpenglao
Copy link
Member

I think you should submit with the cell run, @twiecki?

@springcoil
Copy link
Contributor Author

I'll submit with the cell run then.

Copy link
Member

@junpenglao junpenglao left a comment

Choose a reason for hiding this comment

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

LGTM.

@springcoil
Copy link
Contributor Author

cc - #2489

@twiecki
Copy link
Member

twiecki commented Aug 9, 2017

Definitely need the outputs.

@springcoil
Copy link
Contributor Author

Thanks @twiecki I just ran it now. I wasn't sure if we did or not.

@twiecki
Copy link
Member

twiecki commented Aug 9, 2017

LGTM.

@springcoil
Copy link
Contributor Author

Going to merge it in now once the checks complete :)

@ferrine
Copy link
Member

ferrine commented Aug 9, 2017

What about having fn cache that is cleaned after new var is added?

@springcoil
Copy link
Contributor Author

Hmm that might work - do you have a toy example to illustrate?

@aseyboldt
Copy link
Member

I think it is cleaner to return objects that encapsulate the functions. There is also other state to keep track of, for example the mapping between array space and dict space. When we add more variables, the meaning of an array changes. That is cleaner if it is all part of a separate object, that itself is immutable. It also makes it much easier to see where something is compiled, which makes tracking down errors or slowdown easier. Something like model.logp_dlogp_function().

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.

5 participants