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

should generate_quantities accept sample from Pathfinder as input? #705

Open
mitzimorris opened this issue Sep 22, 2023 · 7 comments
Open
Labels
method inputs Python objects to CmdStan inputs question Further information is requested

Comments

@mitzimorris
Copy link
Member

Summary:

generate_quantities has been generalized to accept samples from Pathfinder?

Description:

requires changes to cmdstanpy/model.py method generate_quantities:

if isinstance(previous_fit, (CmdStanMCMC, CmdStanMLE, CmdStanVB)):

Additional Information:

add this as part of planned 1.2 release?

Current Version:

Please include the output of import cmdstanpy; cmdstanpy.show_versions(), or
at least the cmdstan and cmdstanpy versions used.

@mitzimorris mitzimorris added question Further information is requested method inputs Python objects to CmdStan inputs labels Sep 22, 2023
@mitzimorris
Copy link
Member Author

@WardBrian : 👀 ?

@WardBrian
Copy link
Member

It wouldn’t be that hard IMO but I’m also not willing to hold up the release of 1.2 for it. If someone asks for it we can do it

@mitzimorris
Copy link
Member Author

mitzimorris commented Sep 22, 2023

OK, because looking at it now, it seems pretty easy to do - I could probably bang it out (famous last words...)

@mitzimorris
Copy link
Member Author

same question for a laplace sample.

@WardBrian
Copy link
Member

No technical reason either should be hard (in fact, they’re conceptually easier than the cases we already handle like ADVI, which has the mean as the first output).

It does still touch a lot of the code in the gq class (mostly updating if/else branches). I still think it would be nice to come up with a better encapsulation of standalone GQ

@mitzimorris
Copy link
Member Author

agreed. let's wait on this

@WardBrian
Copy link
Member

Sounds good, good to have an issue to track it.

If the docs updates are ready and you're able to review #691, I think we can release 1.2 early next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
method inputs Python objects to CmdStan inputs question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants