JohannesBuchner / UltraNest

Fit and compare complex models reliably and rapidly. Advanced nested sampling.
https://johannesbuchner.github.io/UltraNest/
Other
142 stars 30 forks source link

For help #49

Closed senmaaa closed 2 years ago

senmaaa commented 2 years ago

Description

How can I do when the number of a model's params more than 323?

What I Did

the cube has length 323. when there are more params,what can do to avoid problem below? 图片

Thanks for your time!

JohannesBuchner commented 2 years ago

Is len(paramnames) > 323?

senmaaa commented 2 years ago

Is len(paramnames) > 323?

yes。

JohannesBuchner commented 2 years ago

If you are using vectorized=True, the my_prior_transform function is not correctly defined. It should be params[:,323] = cube[:,323] * 200 - 100.

senmaaa commented 2 years ago

In my opinion, the problem is that the maximum cube length is 323.But model have parameters >323.

JohannesBuchner commented 2 years ago

Can you print out the shape of cube and params?

senmaaa commented 2 years ago

Thank you very much! It was my code fault。

JohannesBuchner commented 2 years ago

Ok, good, I'll close this then.