statnet / ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks
Other
98 stars 37 forks source link

Augment auxiliaries API to enable "eager" evaluation. #559

Open krivit opened 6 months ago

krivit commented 6 months ago

If a term that uses an auxiliary requires information produced by initialising that auxiliary, it would be efficient if the term could initialise the auxiliary and then instead of returning an auxiliaries= formula return a list of initialised auxiliaries.

The immediate application is statnet/ergm.multi#29: to identify which network(s) should be used in submodel initialisation, we need a list of observed layers involved in a particular layer logic formula.