Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -164,7 +164,8 @@ if __name__ == "__main__": | ... | @@ -164,7 +164,8 @@ 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 == "MLPClassifier": | 166 | if options.classifier == "MLPClassifier": |
167 | - oFile.write("".format(classifier.coefs_)) | 167 | + for coef in classifier.coefs_: |
168 | + oFile.write("".format(coef)) | ||
168 | print(" Saving test report done!") | 169 | print(" Saving test report done!") |
169 | 170 | ||
170 | print("Training and test done in: %fs" % (time() - t0)) | 171 | print("Training and test done in: %fs" % (time() - t0)) | ... | ... |
-
Please register or login to post a comment