powered by
Retrieve a model's confusion chart for a specified source.
GetConfusionChart(model, source = DataPartition$VALIDATION)
An S3 object of class dataRobotModel like that returned by the function GetModel, or each element of the list returned by the function ListModels.
character. The source to pull the confusion chart from. See DataPartition for options for sources. Defaults to DataPartition$VALIDATION.
DataPartition
DataPartition$VALIDATION
data.frame with the following components:
source character. The name of the source of the confusion chart. Will be a member of DataPartition.
data list. The data for the confusion chart, containing:
classes character. A vector containing the names of all the classes.
confusionMatrix matrix. A matrix showing the actual versus the predicted class values.
classMetrics list. A list detailing further metrics for each class:
wasActualPercentages data.frame. A dataframe detailing the actual percentage distribution of the classes.
wasPredictedPercentages data.frame. A dataframe detailing the predicted distribution of the classes.
f1 numeric. The F1 score for the predictions of the class.
recall numeric. The recall score for the predictions of the class.
precision numeric. The precision score for the predictions of the class.
actualCount integer. The actual count of values for the class.
predictedCount integer. The predicted count of values for the class.
className character. A vector containing the name of the class.
# NOT RUN { projectId <- "59a5af20c80891534e3c2bde" modelId <- "5996f820af07fc605e81ead4" GetModel(projectId, modelId) GetConfusionChart(modelId, source = DataPartition$VALIDATION) # }
Run the code above in your browser using DataLab