Classification transcription factor structural domain sentences
Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -309,11 +309,11 @@ if __name__ == "__main__": | ... | @@ -309,11 +309,11 @@ if __name__ == "__main__": |
309 | for param in sorted(best_parameters.keys()): | 309 | for param in sorted(best_parameters.keys()): |
310 | oFile.write("\t%s: %r\n" % (param, best_parameters[param])) | 310 | oFile.write("\t%s: %r\n" % (param, best_parameters[param])) |
311 | if args.classifier == "SVM": | 311 | if args.classifier == "SVM": |
312 | - if args.kernel == "linear": | 312 | + # if args.kernel == "linear": |
313 | - oFile.write('\nWeights assigned to the features: \n') | 313 | + # oFile.write('\nWeights assigned to the features: \n') |
314 | - oFile.write("{}\n".format(myClassifier.best_estimator_.coef_)) | 314 | + # oFile.write("{}\n".format(myClassifier.best_estimator_.coef_)) |
315 | - oFile.write('Confidence scores: \n') | 315 | + # oFile.write('Confidence scores: \n') |
316 | - oFile.write("{}\n".format(confidence_scores)) | 316 | + # oFile.write("{}\n".format(confidence_scores)) |
317 | oFile.write('Number of support vectors per class: \n{}\n'.format(myClassifier.best_estimator_.n_support_)) | 317 | oFile.write('Number of support vectors per class: \n{}\n'.format(myClassifier.best_estimator_.n_support_)) |
318 | oFile.write('Support vectors: \n{}\n'.format(myClassifier.best_estimator_.support_vectors_)) | 318 | oFile.write('Support vectors: \n{}\n'.format(myClassifier.best_estimator_.support_vectors_)) |
319 | 319 | ... | ... |
-
Please register or login to post a comment