From dfa93d859d2b2e6b2a840d341a47b19ce6461254 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 7 Mar 2019 20:08:40 -0500 Subject: formatting --- gensvm/gridsearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gensvm') 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] -- cgit v1.2.3