deepNeuralNetwork.predict: Calculate a prediction from a trained DeepNNModel.

Description Usage Arguments Details Value

View source: R/deepNeuralNetwork.predict.r

Description

'deepNeuralNetwork.predict()' returns a prediction over the given data.

Usage

1
2
deepNeuralNetwork.predict(model.trained, data = X.test,
  standarization = NULL)

Arguments

model.trained

An object of class DeepNNModel containing a trained model.

data

Matrix containing the test data without the observed variable that we want to predict.

standarization

Character or list. Standarization method to be used. If a list of features (corresponding to rows in the input matrix) is supplied, a standarization feature-z-score is done. "r"=robust median z-score. "s"=standar mean z-score.

Details

This function will calculate a prediction using the supplied data. It performs the selected data standarization (beware that the input data must be standarized using the same method as in training) and returns the predicted values.

Value

A vector or matrix containing the predicted values.


OscarGVelasco/DeepNeuralNetworks4R documentation built on Jan. 24, 2021, 12:42 a.m.