View source: R/scoreopt_functions.R
checkinputs | R Documentation |
This function checks that the inputs for scoreopt
and total_score
are correctly setup. It is called at the start of scoreopt
.
checkinputs(data, prob, S, G, score = list(score = "energy", alpha = 1))
data |
Past data realisations as vectors in a list. Each list element corresponds to a period of training data. |
prob |
List of functions to simulate from probabilistic forecasts. Each list element corresponds to a period of training data. The output of each function should be a matrix. |
S |
Matrix encoding linear constraints. |
G |
Values of reconciliation parameters |
score |
Score to be used. This must be a list with two elements: score for the scoring rule (currently only energy supported) and alpha, an additional parameter used in the score (e.g. power in energy score, default is 1). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.