Initialization and model selection
The total SSOF model is most commonly held in a StellarSpectraObservationFitting.OrderModelWobble
struct.
A good start for a SSOF model for a given dataset can be obtained with
StellarSpectraObservationFitting.calculate_initial_model
— Functioncalculate_initial_model(data; kwargs...)
Find a SSOF model for a given dataset, data
. Defaults to returning the AIC-minimum model
Optional arguments
instrument::String="None"
: The name of the instrument(s) the data was taken from. For bookkeepingdesired_order::Int=0
: What order (if any) the data was taken from. For bookkeepingstar::String="None"
: The name of the star the data was taken from. For bookkeepingtimes::AbstractVector=1:size(data.flux, 2)
: The list of times (in days). Used to calculate intra-night RMSμ_min::Real=0
: Set the minimum flux value for the output ofmake_template()
μ_max::Real=Inf
: Set the maximum flux value for the output ofmake_template()
use_mean::Bool=true
: Whether to use the mean or median formake_template()
stop_early::Bool=false
: Whether to stop the model search the first time adding a component increases the AICremove_reciprocal_continuum::Bool=false
: Whether you should attempt to remove places where the telluric template and stellar template are opposing each other (i.e. where continuum goes up in one and down in the other)return_full_path::Bool=false
: Whether to return all of the searched models and metricsmax_n_tel::Int=5
: The maximum amount of telluric feature vectors to look formax_n_star::Int=5
: The maximum amount of stellar feature vectors to look foruse_all_comps::Bool=false
: Whether to use all feature vectors, regardless of AICcareful_first_step::Bool=true
: Whether to shrink the learning rates until the loss improves on the first iterationspeed_up::Bool=false
: Whether to inflate the learning rates until the loss is no longer improving throughout the optimizationlog_λ_gp_star::Real=1/SOAP_gp_params.λ
: The log λ lengthscale of the stellar regularization GPlog_λ_gp_tel::Real=1/LSF_gp_params.λ
: The log λ lengthscale of the telluric regularization GPkwargs...
: kwargs passed toOrderModel
constructor
which builds up the SSOF model component by component using noise-weighted expectation maximization PCA and find the AIC-minimum SSOF model for a given maximum amount of feature vectors.