-
Notifications
You must be signed in to change notification settings - Fork 37
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
do operators need to propagate ext.decode as well? #325
Comments
Actually, I don't think it really matters if the term is an auxiliary or not, but |
I need to update the API docs, but way it works at the moment is that while a term using extended state can "expect" its |
Okay. I can imagine situations where we would want to propagate, but those are just hypotheticals, nothing that exists right now. This seems related to the problem of "contexts", where a given term with given arguments means different things e.g. at the top level vs. inside some operator. For full generality it seems we should allow a different state in each context, so that, e.g., a |
It seems like these lines
ergm/R/ergm_state.R
Lines 275 to 280 in 1eba069
won't work for
ext.decode
s that are only in the operator's submodel, and not brought up to the top level term.To give an extremely contrived example,
produces
The defaults get written in the second case, when
mean.age
is at the top level, but not in the first case, when it's insidePassthrough
. Of course, in this example, those values are junk anyway.But, hypothetically, if we had a non-auxiliary term (can't use
.lasttoggle
as an example, since that's only an auxiliary) that had bothext.encode
andext.decode
functions, and we put that term insidePassthrough
, it seems like it wouldn't work correctly.The text was updated successfully, but these errors were encountered: