shape[1] precision, recall, f_value, support = precision_recall_fscore_support(ground_truth, prediction_indices, beta=f_beta, pos_label=M, average=avg_method) else: precision, recall, f_value, support = precision_recall_fscore_support(ground_truth, prediction_indices, beta=f_beta, average...
predictedOutput = model.predict(features)#print predictedOutput#print actualOutputself.computeAccuracy(predictedOutput,actualOutput)print"Precision recall Fscore support metrics for CART "printprecision_recall_fscore_support(actualOutput,predictedOutput)print"\nconfusion matrix\n"printconfusion_matrix(actualO...