diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-07 20:08:40 -0500 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-07 20:08:40 -0500 |
| commit | dfa93d859d2b2e6b2a840d341a47b19ce6461254 (patch) | |
| tree | b76172ded2fcce7ac9e58ce65e65855cc607f122 /gensvm | |
| parent | Add warning that shufflesplits unsupported (diff) | |
| download | pygensvm-dfa93d859d2b2e6b2a840d341a47b19ce6461254.tar.gz pygensvm-dfa93d859d2b2e6b2a840d341a47b19ce6461254.zip | |
formatting
Diffstat (limited to 'gensvm')
| -rw-r--r-- | gensvm/gridsearch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gensvm/gridsearch.py b/gensvm/gridsearch.py index 0eeb603..b27a347 100644 --- a/gensvm/gridsearch.py +++ b/gensvm/gridsearch.py @@ -619,8 +619,8 @@ class GenSVMGridSearchCV(BaseEstimator, MetaEstimatorMixin): # gamma='auto' was used. We need to save the actual numerical value # for use in the predict method later on, so we extract that here. if ( - "kernel" in self.best_params_ and - not self.best_params_["kernel"] == "linear" + "kernel" in self.best_params_ + and not self.best_params_["kernel"] == "linear" and not "gamma" in self.best_params_ ): self.best_params_["gamma"] = 1. / X.shape[1] |
