predict.MLPClassifier.Rd
Similar to other predict methods, this function predicts fitted values from a fitted "MLPClassifier" object.
# S3 method for MLPClassifier
predict(model, data, key, features = NULL, thread.ratio = NULL)
S3
methods
R6Class object
A 'MLPCLassifier' object for prediction.
DataFrame
DataFrame containting the data.
character
Name of the ID column.
character of list of characters, optional
Name of feature columns for prediction.
If not provided, it defaults to all non-key columns of data.
Returns a list of DataFrames:DataFrame 1 :
Prediction result, structured as follows:
ID, integer
- ID column,
with the same name and type as data's ID column
TARGET, nvarchar
- predicted class name.
VALUE, double
- softmax value for the predicted class.
DataFrame 2 :
Softmax values, structured as follows:
ID, integer
- ID column,
with the same name and type as data's ID column
CLASS, nvarchar
- class name.
VALUE, double
- softmax value for that class.
Call the function and predict with a "MLPClassifier" object mplc:
> predict (mplc, data, key = "ID")