Skip to content
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

Feature request: Change labels in plots #128

Open
leocasarsa opened this issue May 6, 2016 · 2 comments
Open

Feature request: Change labels in plots #128

leocasarsa opened this issue May 6, 2016 · 2 comments

Comments

@leocasarsa
Copy link

It is usually more practical to handle short variable names while doing analysis, but to write the full variable description in plots.

For examples, it is easier to write q(''' SELECT PRD_MIN FROM %t'''), instead of "Period in Minutes", while the latter name is more informative in a pairplot or heatmap.

One solution would be to pass a codebook df or csv to the make_population command and have the plots access the codebook instead. However it might also be useful to keep the ability of plotting with labels such as PRD_MIN for succint preliminary analyses purposes.

@leocasarsa
Copy link
Author

The cumbersome alternative right now is to redefine the variable names and retraining the metamodel to change the labels. Definitely not optimal.

@gregory-marton
Copy link
Contributor

There is some facility for this in bayeslite: https://github.com/probcomp/bayeslite/blob/master/src/codebook.py

We could wrap this better in bdbcontrib, but let me check if you can get it to do the thing you want.

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

No branches or pull requests

2 participants