parameters: (self, n_jobs)
return_statement: return n_jobs
docstring: Determine the number of jobs which are going to run in parallel
docstring_summary: Determine the number of jobs which are going to run in parallel
docstring_tokens: Determine the number of jobs which are going to run in parallel
function: def effective_n_jobs(self, n_jobs):
          """Determine the number of jobs which are going to run in parallel"""
          if n_jobs == 0:
              raise ValueError('n_jobs == 0 in Parallel has no meaning')
          elif mp is None or n_jobs is None:
              # multiprocessing is not available or disabled, fallback
              # to sequential mode
              return 1
          elif n_jobs < 0:
              n_jobs = max(cpu_count() + 1 + n_jobs, 1)
          return n_jobs
function_tokens: def effective_n_jobs ( self , n_jobs ) : if n_jobs == 0 : raise ValueError ( 'n_jobs == 0 in Parallel has no meaning' ) elif mp is None or n_jobs is None : # multiprocessing is not available or disabled, fallback # to sequential mode return 1 elif n_jobs < 0 : n_jobs = max ( cpu_count ( ) + 1 + n_jobs , 1 ) return n_jobs