Icon

19_​Confusion_​Matrix_​and_​Class_​Statistics - Solution

19_Confusion_Matrix_and_Class_Statistics - Solution
Exercise Confusion Matrix and Class Statistics1) Read data predicted_income.csvThe "income" column contains people’s actual income class values. The “Prediction (income)” column contains their predictedincome class values produced by some classification model based on the other information available in the dataset. The incomeclass has two values: “<=50K” and “>50K”2) Evaluate the accuracy of the income class prediction using the Scorer (JavaScript) node. Execute the node, and open theinteractive view.- What is the overall accuracy of the model?3) Open the configuration dialog of the Scorer (JavaScript) node and exclude the following statistics from the class predictionstatistics table:True positivesFalse positivesTrue negativesFalse negatives4) Open the interactive view again, and display the number of rows in the confusion matrix. What is the number of rows in thedataset? Overall accuracy: 83.68%Number of rows: 6513 Read datapredicted_income.csvEvaluate predictionaccuracy File Reader Scorer (JavaScript) Exercise Confusion Matrix and Class Statistics1) Read data predicted_income.csvThe "income" column contains people’s actual income class values. The “Prediction (income)” column contains their predictedincome class values produced by some classification model based on the other information available in the dataset. The incomeclass has two values: “<=50K” and “>50K”2) Evaluate the accuracy of the income class prediction using the Scorer (JavaScript) node. Execute the node, and open theinteractive view.- What is the overall accuracy of the model?3) Open the configuration dialog of the Scorer (JavaScript) node and exclude the following statistics from the class predictionstatistics table:True positivesFalse positivesTrue negativesFalse negatives4) Open the interactive view again, and display the number of rows in the confusion matrix. What is the number of rows in thedataset? Overall accuracy: 83.68%Number of rows: 6513 Read datapredicted_income.csvEvaluate predictionaccuracy File Reader Scorer (JavaScript)

Nodes

Extensions

Links