Skip to content

Parameterising 1 Transiting planet and 3 RV planets #325

Answered by dfm
SilencePhyxion asked this question in Q&A
Discussion options

You must be logged in to vote

I can help with the error that you're finding, but the slow sampling is a larger (problem-specific) question that is probably out of scope here.

For the UnitDisk with 3 planets, the syntax you'll want is:

- ecs = pmx.UnitDisk("ecs", shape=(2, 2, 2), testval=0.01 * np.ones((2, 2, 2)))
+ ecs = pmx.UnitDisk("ecs", shape=(2, 3), testval=0.01 * np.ones((2, 3)))

because the shape should be (num_params, num_planets), where num_params is always 2 (cos(e) and sin(e)).

I expect that updating that syntax should at least let you run the model that you want, but you may need to look into other reparameterizations to get faster sampling. Hope this helps to at least get you started!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SilencePhyxion
Comment options

Answer selected by SilencePhyxion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants