ML scripts: {'n_jobs': os.cpu_count() }
This commit is contained in:
parent
11af00f1db
commit
b8653c6afe
4 changed files with 16 additions and 12 deletions
|
@ -76,8 +76,7 @@ import argparse
|
|||
import re
|
||||
#####################################
|
||||
rs = {'random_state': 42}
|
||||
njobs = {'n_jobs': 10}
|
||||
|
||||
njobs = {'n_jobs': os.cpu_count() } # the number of jobs should equal the number of CPU cores
|
||||
|
||||
scoring_fn = ({ 'mcc' : make_scorer(matthews_corrcoef)
|
||||
, 'fscore' : make_scorer(f1_score)
|
||||
|
|
|
@ -76,7 +76,7 @@ import argparse
|
|||
import re
|
||||
#%% GLOBALS
|
||||
rs = {'random_state': 42}
|
||||
njobs = {'n_jobs': 10}
|
||||
njobs = {'n_jobs': os.cpu_count() } # the number of jobs should equal the number of CPU cores
|
||||
|
||||
scoring_fn = ({ 'mcc' : make_scorer(matthews_corrcoef)
|
||||
, 'fscore' : make_scorer(f1_score)
|
||||
|
|
|
@ -41,7 +41,7 @@ import re
|
|||
homedir = os.path.expanduser("~")
|
||||
#%% GLOBALS
|
||||
rs = {'random_state': 42}
|
||||
njobs = {'n_jobs': 10}
|
||||
njobs = {'n_jobs': os.cpu_count() } # the number of jobs should equal the number of CPU cores
|
||||
|
||||
#%% Define split_tts function #################################################
|
||||
def split_tts(ml_input_data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue