-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Draft: REF: Rename ar variables #766
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
I don't like the innovations -> steps sounds fine |
Yes I sometimes get the same feeling with the |
That would be my suggestion |
0d9bcac
to
3d8cc1e
Compare
Done! With respect to optimal naming conventions I love this quote: "There are only two hard things in Computer Science: cache invalidation and naming things". Do you have any references (or things you've written) that you like particularly on the topic? |
I agree it's hard. The other issue in an OSS is that it's subjective. So someone may come next and decide they don't like the current names, and propose a change. Then someone says they like something like the original ones, and so on... So if we are not adding anything extra to the codebase/documentation I would generally suggest not changing anything unless it's clearly needed. That's why tools like black are right to be opinionated: "Here is an automatically-enforced default, no more discussions about how to format code/etc". |
Hi all,
going through Time_Series_Generative_Graph I found the naming of the variable
ar_innov
slightly confusing as innovations usually refers to the forecast error (the termpm.Normal.dist(sigma=sigma)
withinar_step
in this case) and following @jessegrabowski 's suggestion I'm proposing a renaming.I've also renamed the ar function names to give them verb-like structure:
pm.CustomDist("ar_dist"...)
I've replaced by "ar_steps" for consistency.and similarly some variables to give them noun-like strucutre:
I sometimes name
ar_init
asar_0
andar_steps
asar_t
for compactness.I haven't created an issue because I felt this was too trivial but I have no trouble creating one.
Disclaimer: this is my first potential contribution to an OS project (at all!), I've read the guides and hope I haven't missed anything important.
📚 Documentation preview 📚: https://pymc-examples--766.org.readthedocs.build/en/766/