predict_seq {reservoirnet} | R Documentation |
Run the node-forward function on a sequence of data
Description
Run the node-forward function on a sequence of data
Usage
predict_seq(node, X, formState = NULL, stateful = TRUE, reset = FALSE)
Arguments
node |
node |
X |
array-like of shape |
formState |
array of shape |
stateful |
|
reset |
|
Details
Can update the state of the node several times
Value
An object of class reservoir_predict_seq. This object is a numeric vector containing the matrix of the prediction of the reservoir. It is either the forecast of the ridge layer or the node state of the reservoir if no ridge layer is given.
Examples
if(reticulate::py_module_available("reservoirpy")){
reservoir <- reservoirnet::createNode(nodeType = "Reservoir",
seed = 1,
units = 100,
lr = 0.7,
sr = 1,
input_scaling = 1)
X <- matrix(data = rnorm(100), ncol = 4)
reservoir_state_stand <- reservoirnet::predict_seq(node = reservoir, X = X)
plot(reservoir_state_stand)
summary(reservoir_state_stand)
}
[Package reservoirnet version 0.2.0 Index]