Predict scores or classification from, e.g., textTrain.
textPredict(model_info, new_data, type = NULL, ...)
model_info | Model info (e.g., saved output from textTrain, textTrainRegression or textRandomForest). |
---|---|
new_data | Word embeddings from new data to be predicted from. |
type | Type of prediction; e.g., "prob", "class". |
... | Setting trom stats::predict can be called. |
Predicted scores from word embeddings.
wordembeddings <- wordembeddings4 ratings_data <- Language_based_assessment_data_8