Computes the residuals (observed - predicted) for the RVFL2 model on the given data.

# S3 method for class 'rvfl2'
residuals(object, x, y)

Arguments

object

An object of class rvfl2 (the fitted model).

x

A numeric matrix of input features (test data).

y

A numeric vector of observed target values (test labels).

Value

A numeric vector of residuals.