ragged_preds | R Documentation |
Get predictions on artificial vintages
ragged_preds(model, pub_lags, lag, data, start_date = NULL, end_date = NULL)
model |
a trained LSTM model gotten from calling LSTM() |
pub_lags |
list of integers, list of periods back each input variable is set to missing. I.e. publication lag of the variable. |
lag |
integer, simulated periods back. E.g. -2 = simulating data as it would have been 2 months before target period, 1 = 1 month after, etc. |
data |
dataframe to generate the ragged datasets and predictions on |
start_date |
string in "YYYY-MM-DD" format, start date of generating ragged preds. To save calculation time, i.e. just calculating after testing date instead of all dates |
end_date |
string in "YYYY-MM-DD" format, end date of generating ragged preds |
dataframe of actuals, predictions, and dates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.