-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
__author__ = "Taylor Oshan [email protected]" | ||
|
||
import spreg.user_output as USER | ||
import warnings | ||
import numpy as np | ||
from scipy.spatial.distance import pdist | ||
from scipy.optimize import minimize_scalar | ||
|
@@ -203,7 +204,7 @@ def search(self, search_method='golden_section', criterion='AICc', | |
max_iter=200, init_multi=None, tol_multi=1.0e-5, | ||
rss_score=False, max_iter_multi=200, multi_bw_min=[None], | ||
multi_bw_max=[None | ||
], bws_same_times=5, verbose=False): | ||
], bws_same_times=5, verbose=False,pool=None): | ||
""" | ||
Method to select one unique bandwidth for a gwr model or a | ||
bandwidth vector for a mgwr model. | ||
|
@@ -251,6 +252,7 @@ def search(self, search_method='golden_section', criterion='AICc', | |
current set of bandwidths as final bandwidths. | ||
verbose : Boolean | ||
If true, bandwidth searching history is printed out; default is False. | ||
pool : None, deprecated and not used. | ||
Returns | ||
------- | ||
|
@@ -290,6 +292,10 @@ def search(self, search_method='golden_section', criterion='AICc', | |
" a single entry or a list containing an entry for each of k" | ||
" covariates including the intercept") | ||
|
||
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) | ||
|
||
|
||
self.interval = interval | ||
self.tol = tol | ||
self.max_iter = max_iter | ||
|