PredictNonlinear uses SMap to evaluate
prediction accuracy as a function of the state-space localization parameter
theta.
PredictNonlinear(dataFrame = NULL, columns, target, lib, pred, theta = NULL, E = NULL,
Tp = 1, knn = 0, tau = -1, exclusionRadius = 0,
embedded = FALSE, validLib = logical(0), noTime = FALSE,
ignoreNan = TRUE, numProcess = 4, backend = "RANN",
pathIn = "./", dataFile = "", pathOut = "./", predictFile = "",
parameterList = FALSE, showPlot = FALSE, verbose = FALSE)A data.frame with columns Theta and rho.
A data.frame of input data. The first column must be a time
index or time values unless noTime = TRUE. The columns must be named.
Column name(s) to build the embedding: character vector or space-separated string.
Target column name to predict.
Library (training) index range as (start end) pairs.
Prediction index range as (start end) pairs.
S-map localisation parameter (0 = global linear map).
Embedding dimension. Required (no default); must be a positive integer unless embedded = TRUE, in which case it is inferred as the number of columns.
Forecast interval (prediction horizon).
Number of nearest neighbours. 0 selects the method default.
Embedding delay (negative selects past lags).
Temporal (Theiler) exclusion radius around each prediction point.
If TRUE, columns already form the embedding.
Logical vector marking admissible library rows (or length 0 for all).
If TRUE, synthesise a 1..N time index instead of using column 1.
Remove rows with NaN in the embedding from the library and prediction sets.
Number of worker processes for the parameter sweep or task grid.
Nearest-neighbour backend: "RANN" (default) or "brute".
File path for input dataFile.
Input dataFile, .csv format.
Output file path for predictFile
Output file name, .csv format.
Append named list of parameters/values to return.
If TRUE, draw a base-graphics plot of the result.
Not used.
data(TentMapNoise)
theta.rho = PredictNonlinear( dataFrame = TentMapNoise, E = 2,
lib = "1 100", pred = "201 500", columns = "TentMap",
target = "TentMap", showPlot = FALSE )
Run the code above in your browser using DataLab