Branch dev
Compare changes
+ 3
− 4
@@ -51,9 +51,8 @@ if not os.path.exists('models'):
@@ -51,9 +51,8 @@ if not os.path.exists('models'):
@@ -73,7 +72,7 @@ for columnInput in [columnText, 'firstParagraph']:
@@ -73,7 +72,7 @@ for columnInput in [columnText, 'firstParagraph']:
('counter', extractor.count_vect(max_df = vectorization_max_df, min_df = vectorization_min_df, numberOfFeatures = vectorization_numberOfFeatures )),
@@ -122,10 +121,10 @@ for columnInput in [columnText, 'firstParagraph']:
@@ -122,10 +121,10 @@ for columnInput in [columnText, 'firstParagraph']:
report, accuracy, weighted_avg = evaluate_model(clf, test_x, valid_y, y_pred, valid_y, [str(e) for e in encoder.transform(encoder.classes_)], encoder.classes_, os.path.join('reports', columnClass, dir_name_report, file_name_report)+'.pdf')
with open(os.path.join('reports', columnClass, dir_name_report, file_name_report+'.txt'), 'w') as f: