Skip to content

Commit

Permalink
small bug on train svm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste-Camps committed Apr 30, 2024
1 parent d359bc8 commit ae49458
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions train_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@
else:
args.o = ''

svm["confusion_matrix"].to_csv(args.o+"confusion_matrix.csv")
svm["misattributions"].to_csv(args.o+"misattributions.csv")

if args.cross_validate is not None or (args.test_path is not None and not args.final):
svm["confusion_matrix"].to_csv(args.o+"confusion_matrix.csv")
svm["misattributions"].to_csv(args.o+"misattributions.csv")

joblib.dump(svm["pipeline"], args.o+'mySVM.joblib')

if args.final:
Expand Down

0 comments on commit ae49458

Please sign in to comment.