Skip to content

Commit

Permalink
Used all the core available when fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspd committed Jan 20, 2024
1 parent 6995a05 commit 0503308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spam_detector_ai/test_and_tuning/fine_tuning_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'kernel': ['rbf', 'linear', 'poly', 'sigmoid']}

logger.info("Define the grid search")
grid_search = GridSearchCV(SVC(), param_grid, refit=True, verbose=3, cv=5)
grid_search = GridSearchCV(SVC(), param_grid, refit=True, verbose=3, cv=5, n_jobs=-1)

logger.info("Loading the training data")
trainer = ModelTrainer(data_path='../data/spam.csv', classifier_type=ClassifierType.SVM, logger=logger)
Expand Down

0 comments on commit 0503308

Please sign in to comment.