Skip to content

Commit

Permalink
Change default n_jobs to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziqi-Li committed Dec 4, 2023
1 parent 5dbac32 commit 13190c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mgwr/gwr.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GWR(GLM):
Names of independent variables for use in output
n_jobs : integer
The number of jobs (default 1) to run in parallel. -1 means using all processors.
The number of jobs (default -1) to run in parallel. -1 means using all processors.
Attributes
Expand Down Expand Up @@ -215,7 +215,7 @@ class GWR(GLM):

def __init__(self, coords, y, X, bw, family=Gaussian(), offset=None,
sigma2_v1=True, kernel='bisquare', fixed=False, constant=True,
spherical=False, hat_matrix=False, name_x=None,n_jobs=1):
spherical=False, hat_matrix=False, name_x=None,n_jobs=-1):
"""
Initialize class
"""
Expand Down
4 changes: 2 additions & 2 deletions mgwr/sel_bw.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Sel_BW(object):
True for shperical coordinates (long-lat),
False for projected coordinates (defalut).
n_jobs : integer
The number of jobs (default 1) to run in parallel. -1 means using all processors.
The number of jobs (default -1) to run in parallel. -1 means using all processors.
Attributes
----------
Expand Down Expand Up @@ -176,7 +176,7 @@ class Sel_BW(object):

def __init__(self, coords, y, X_loc, X_glob=None, family=Gaussian(),
offset=None, kernel='bisquare', fixed=False, multi=False,
constant=True, spherical=False,n_jobs=1):
constant=True, spherical=False,n_jobs=-1):
self.coords = np.array(coords)
self.y = y
self.X_loc = X_loc
Expand Down

0 comments on commit 13190c5

Please sign in to comment.