Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -164,10 +164,10 @@ if __name__ == "__main__": | ... | @@ -164,10 +164,10 @@ if __name__ == "__main__": |
164 | oFile.write('Classification report: \n') | 164 | oFile.write('Classification report: \n') |
165 | oFile.write(classification_report(trueEvaluationClasses, y_pred) + '\n') | 165 | oFile.write(classification_report(trueEvaluationClasses, y_pred) + '\n') |
166 | if options.classifier in ["Perceptron", "SVM"]: | 166 | if options.classifier in ["Perceptron", "SVM"]: |
167 | - oFile.write('Confidence scores: \n') | ||
168 | - oFile.write("{}".format(confidence_scores)) | ||
169 | oFile.write('\nWeights assigned to the features: \n') | 167 | oFile.write('\nWeights assigned to the features: \n') |
170 | oFile.write("{}".format(classifier.coef_)) | 168 | oFile.write("{}".format(classifier.coef_)) |
169 | + oFile.write('Confidence scores: \n') | ||
170 | + oFile.write("{}".format(confidence_scores)) | ||
171 | 171 | ||
172 | print(" Saving test report done!") | 172 | print(" Saving test report done!") |
173 | 173 | ... | ... |
-
Please register or login to post a comment