stan-dev/math: fvar testing

27 views
Skip to first unread message

Daniel Lee

unread,
Jul 7, 2016, 9:05:26 AM7/7/16
to stan-dev mailing list
Anyone, in particular Rob, know what the status is on testing the functions we have? There are a couple people that have volunteered to help and I want to know the status and where and how we can get people to help with testing.

Thanks.



Daniel

Rob Trangucci

unread,
Jul 7, 2016, 3:22:26 PM7/7/16
to stan...@googlegroups.com
Most, if not all, scalar and matrix functions are tested with fvar<var> and fvar<fvar<var> > for:

 - valid values
 - invalid values
 - nan values
 - invalid arguments
 - gradients equal expected values
 - function values equal expected values

Most scalar functions and some matrix functions are tested with fvar<var> and fvar<fvar<var> > for:

 - diagonals of hessians vs. expected values
 - diagonals of gradients of hessians vs. expected values

Few, if any, scalar and matrix functions are tested with fvar<var> and fvar<var<var> > for:

 - Full Hessians vs. expected values (and/or finite diff)
 - Gradients of the Hessians vs. expected values (and/or finite diff)

It also looks as if the unit tests in test/unit/math/mix/mat/prob are very sparse and test only that function values equal expected values.

If you need a more full accounting of test inventory, let me know and I/we can write up a file-by-file description.

Rob

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

Reply all
Reply to author
Forward
0 new messages