predict_seq | R Documentation |
Run the node-forward function on a sequence of data
predict_seq(node, X, formState = NULL, stateful = TRUE, reset = FALSE)
node |
node |
X |
array-like of shape |
formState |
array of shape |
stateful |
|
reset |
|
Can update the state of the node several times
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.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.