You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has some confusion over the keyword argument components in gp_priors.powerlaw.
In gp_signals.FourierBasisGP, the keyword argument components refers to the number of frequency bins in the GP model. In the GP basis functions like gp_bases.createfourierdesignmatrix_red, this same number of frequency bins is called nmodes.
The name components is used extensively in enterprise_extensions to refer to the number of frequency bins, too.
In gp_priors.powerlaw the keyword components=2 refers to the number of sinusoidal components at each frequency bin. This should always be two, for a sine and a cosine. Other powerlaw-like prior functions, turnover and broken_powerlaw, don't take this keyword argument at all. These functions hard code to 2 in the appropriate places. In practice the default is never changed, as far as I know.
There has some confusion over the keyword argument
components
ingp_priors.powerlaw
.In
gp_signals.FourierBasisGP
, the keyword argumentcomponents
refers to the number of frequency bins in the GP model. In the GP basis functions likegp_bases.createfourierdesignmatrix_red
, this same number of frequency bins is callednmodes
.The name
components
is used extensively inenterprise_extensions
to refer to the number of frequency bins, too.In
gp_priors.powerlaw
the keywordcomponents=2
refers to the number of sinusoidal components at each frequency bin. This should always be two, for a sine and a cosine. Other powerlaw-like prior functions,turnover
andbroken_powerlaw
, don't take this keyword argument at all. These functions hard code to2
in the appropriate places. In practice the default is never changed, as far as I know.Thanks to @danielreardon for pointing this out!
components=2
keyword from all powerlaw-likegp_priors
? This would assume two sinusoidal components in all cases.nmodes
tocomponents
ingp_bases
? This would keep the same naming convention for the prior and basis functions.Whoever makes changes related to this should add docstrings to the
gp_priors
functions, to explain what they do and when to use them!The text was updated successfully, but these errors were encountered: