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

Local covariance matrix #156

Open
Aseman7 opened this issue Apr 13, 2023 · 0 comments
Open

Local covariance matrix #156

Aseman7 opened this issue Apr 13, 2023 · 0 comments

Comments

@Aseman7
Copy link

Aseman7 commented Apr 13, 2023

Hello,

Please have a look at Figure 5 of Czekala et al. 2015:

Screenshot 2023-04-13 at 11 03 53

It explains how the addition of local kernel can be so useful in some cases. My question is: how can I add an outlier line (for example, 5202.2 Angestrum) into code?

As the Starfish documentation says, I have to define its kernel by its hyperparameters:

log_amp: The natural logarithm of the amplitude of the kernel
mu: The location of the local kernel
log_sigma: The natural logarithm of the standard deviation of the kernel

Does it mean that I use the following definition in the SpectrumModel function as:

local_cov = dict(log_amp:?, mu: 5202.2, log_sigma:?)

If yes, please guide me on how to select "log_amp" and "log_sigma". Does "mu" value is correct?

And how to define them in the prior values:

"local_cov:log_amp": st.norm(?),
"local_cov:log_sigma": st.norm(?),
"local_cov:mu": st.norm (5222.1, 0.1)

Thanks a lot for any help in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant