-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Return variable names and dimensions #256
Conversation
@jgabry we can hold off with this for after beta if you want. I am done for today, but if you have any feedback I can finish this tomorrow. Mostly want ideas for names. Does |
Codecov Report
@@ Coverage Diff @@
## master #256 +/- ##
==========================================
+ Coverage 90.78% 90.85% +0.07%
==========================================
Files 11 11
Lines 2311 2329 +18
==========================================
+ Hits 2098 2116 +18
Misses 213 213
Continue to review full report at Codecov.
|
Ok cool thanks I'll take a look. |
hi, could we co-ordinate w/ CmdStanPy on names? we went through this a while back - last thing I implemented there was stan-dev/cmdstanpy#252 - called everything "stan_variable". |
Yes good point @mitzimorris! |
@mitzimorris Does
has dim 0 or 1? |
@rok-cesnovar I pushed a few edits and I think this is ok now other than changing the names. Are you ok with changing to |
property given fit object ps. thanks for asking - noticed that doc doesn't match output. damn. |
@jgabry changed to stan_var_dims and stan_variables. Also added a few more tests. I think its good to go. |
Looks good! This is good to go, just one super nitpicky thing (sorry!): I think it's slightly weird to use |
I agree. That annoyed me a bit as well to be honest but thought that was discussed and agreed on earlier. I prefer the verbose version as well. |
agreed. will change CmdStanPy accordingly. |
@jgabry renamed. Good to merge? |
Yeah looks good. Will merge now. |
Submission Checklist
Summary
Attempt at fixing #240
For now, this just returns the variable names and dimensions as part of metadata in read_cmdstan_csv. We should add it in fit, but not sure on the name.
Example:
Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Rok Češnovar, Univ. of Ljubljana
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: