Print only parameters (not generated quantities)?

22 views
Skip to first unread message

Tor Tarantola

unread,
Mar 5, 2017, 11:38:32 AM3/5/17
to Stan users mailing list
Hi all,

I'm using Pystan -- is there a way to print(fit) only the parameters and not the generated quantities? I have several (very long) generated quantities and printing takes over an hour.

Thanks!
Tor

Bob Carpenter

unread,
Mar 5, 2017, 11:53:23 AM3/5/17
to stan-...@googlegroups.com
How many variables and how many draws? I don't know how efficient the
PyStan code is for printing---it'd be nice to see if the time was in
the actual posterior statistics calculations or in the print itself.

- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Tor Tarantola

unread,
Mar 5, 2017, 12:14:26 PM3/5/17
to Stan users mailing list
183 parameters and about 50,000 generated quantities, 4,000 draws.

Tor

On Sun, Mar 5, 2017 at 4:52 PM, Bob Carpenter <ca...@alias-i.com> wrote:
How many variables and how many draws?  I don't know how efficient the
PyStan code is for printing---it'd be nice to see if the time was in
the actual posterior statistics calculations or in the print itself.

- Bob

> On Mar 5, 2017, at 11:38 AM, Tor Tarantola <tor.ta...@gmail.com> wrote:
>
> Hi all,
>
> I'm using Pystan -- is there a way to print(fit) only the parameters and not the generated quantities? I have several (very long) generated quantities and printing takes over an hour.
>
> Thanks!
> Tor
>
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+unsubscribe@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/BH_DEr5gqaA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.

Bob Carpenter

unread,
Mar 5, 2017, 8:06:23 PM3/5/17
to stan-...@googlegroups.com
OK, that shouldn't take an hour. Allen---is that using the
same posterior analysis code as CmdStan or is it written in
Python.

- Bob

> On Mar 5, 2017, at 12:14 PM, Tor Tarantola <tor.ta...@gmail.com> wrote:
>
> 183 parameters and about 50,000 generated quantities, 4,000 draws.
>
> Tor
>
> On Sun, Mar 5, 2017 at 4:52 PM, Bob Carpenter <ca...@alias-i.com> wrote:
> How many variables and how many draws? I don't know how efficient the
> PyStan code is for printing---it'd be nice to see if the time was in
> the actual posterior statistics calculations or in the print itself.
>
> - Bob
>
> > On Mar 5, 2017, at 11:38 AM, Tor Tarantola <tor.ta...@gmail.com> wrote:
> >
> > Hi all,
> >
> > I'm using Pystan -- is there a way to print(fit) only the parameters and not the generated quantities? I have several (very long) generated quantities and printing takes over an hour.
> >
> > Thanks!
> > Tor
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> > To post to this group, send email to stan-...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/BH_DEr5gqaA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages