StateSpaceModels / ssm

Inference for State Space Models like playing with duplo blocks
GNU General Public License v3.0
25 stars 16 forks source link

rename tracked property of model.reactions #14

Closed sballesteros closed 10 years ago

sballesteros commented 10 years ago

The tracked property of model.reactions seems to create confusion as some users think that the observation model can only observe tracked reactions (whereas it can observe any states including those defined as tracked reactions). Maybe renaming tracked as accumulatedIn will help. @qcaudron feedback ?

QCaudron commented 10 years ago

Agreed. The keyword tracked is misleading. Either accummulatedIn, or perhaps integrated are quite general. For more epi-related context, perhaps just an incidence specifier ?

sballesteros commented 10 years ago

Thanks, trying to stay general and broader than epidemiology so I am afraid that incidence is too epi specific. accumulated seems to be the more general idea. In pomp they use zeronames and "accumulator variables" so I would suggest to go with accumulators (as its a list) or accumulatedIn.

QCaudron commented 10 years ago

Then probably accumulated is good; it's clear, and avoids camelCase. I think zeronames is equally unclear !

sballesteros commented 10 years ago

sorry just edited my comment. accumulators ? Like that it convey that it's a list of states and still avoid the camelCase

QCaudron commented 10 years ago

The property is added to individual reactions. That being the case, adding the property to a reaction one at a time, I'd keep it singular. My vote would be for accumulated, as the reaction is just that - accumulated between timesteps. But it's not hugely important : the major change is to leave tracked behind, I think, to something more intuitively meaningful.

sballesteros commented 10 years ago

See your point. accumulators on the other hand helps to remember that the value has to be a list. Agreed it's not a big deal. @tiffbogich, @JDureau any preferences ? Will change that for the 0.7.x release.

tiffbogich commented 10 years ago

I prefer accumulators to the past tense version. past tense doesn't sounds right to me but i see the point

JDureau commented 10 years ago

I'd suggest sticking to mathematical concepts, hence integrated/tor. I prefer the past form. The -tor sounds cheesy to me.

sballesteros commented 10 years ago

@JDureau 100% agree to stick to the underlying math concepts but here it's more a vanilla sum than an integral no ? Reactions are supposed to be for discrete individuals so we literally cumulate (sum) them. To me integrated involve smtg continuous/infinitesimal (not the case here).

sballesteros commented 10 years ago

That being said, like we will support vanilla ODEs (the model.ode property) in the near future, integrated might be our best bet as it will work everywhere.

sballesteros commented 10 years ago

Although for ODE integrated is weird as every equation is integrated... Maybe accumulators as the ors end clearly indicates that we refer to states variable. I vote for accumulators

JDureau commented 10 years ago

Actually you're opening a nice perspective, allowing integration in the ode or sde objects would lead to differential equations of order > 1. That's really not uncommon. It's far-fetched for the moment, but would be good to keep that door open.

In that case it may be best to avoid potential confusion and step away from integration. What about accumulation? Trying to avoid -or

sballesteros commented 10 years ago

I like the -or as the property describe the creation of new state variables whose job is to accumulate quantities. These new state variables are accumulator variables (that's their mission). Agreed it's a bit terminator kind of crap but I think it's the "right" semantic.

JDureau commented 10 years ago

Ok let's go for it. @tiffbogich and @QCaudron seemed to be fine with that.