Skip to content

Commit

Permalink
Merge pull request #140 from trietmnj/bug/xname
Browse files Browse the repository at this point in the history
Fixed typo in covariate names
  • Loading branch information
TaylorOshan authored Jan 1, 2024
2 parents 5b484ef + aa77ed7 commit f7b7919
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mgwr/gwr.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class GWR(GLM):
n_jobs : integer
The number of jobs (default -1) to run in parallel. -1 means using all processors.
Attributes
----------
Expand Down Expand Up @@ -1620,7 +1620,7 @@ def fit(self, n_chunks=1,pool=None):
n_chunks : integer, optional
A number of chunks parameter to reduce memory usage.
e.g. n_chunks=2 should reduce overall memory usage by 2.
pool : None, deprecated and not used
Returns
Expand All @@ -1640,7 +1640,7 @@ def tqdm(x, total=0,

if pool:
warnings.warn("The pool parameter is no longer used and will have no effect; parallelization is default and implemented using joblib instead.", RuntimeWarning, stacklevel=2)

if self.n_jobs == -1:
max_processors = os.cpu_count()
self.n_chunks = max_processors * n_chunks
Expand Down Expand Up @@ -1886,7 +1886,7 @@ class MGWRResults(GWRResults):
"""

def __init__(self, model, params, predy, CCT, ENP_j, w, R, x_name=None):
def __init__(self, model, params, predy, CCT, ENP_j, w, R, name_x=None):
"""
Initialize class
"""
Expand All @@ -1896,7 +1896,7 @@ def __init__(self, model, params, predy, CCT, ENP_j, w, R, x_name=None):
if model.hat_matrix:
self.S = np.sum(self.R, axis=2)
self.predy = predy
self.x_name = x_name
self.name_x = name_x

@cache_readonly
def tr_S(self):
Expand Down

0 comments on commit f7b7919

Please sign in to comment.