FeatureReductionGenetic icon indicating copy to clipboard operation
FeatureReductionGenetic copied to clipboard

fix value for parameter gamma

Open mahakbansal opened this issue 6 years ago • 2 comments

If you look at the documentation for svm. SVC, you will see that gamma must be a number, not a string. (The string 'auto' is allowed, but only because it has special meaning for this particular function and not 'scale' anymore.)

mahakbansal avatar Apr 07 '19 13:04 mahakbansal

But it is OK to assign the parameter gamma a string value as long as it is interpreted by scikit-learn as a number.

ahmedfgad avatar May 10 '19 15:05 ahmedfgad

In your branch, you replaced scale by auto. The official documentation of SVC at scikit-learn mentioned the following:

The current default of gamma, ‘auto’, will change to ‘scale’ in version 0.22.

So, I think using scale is the best.

ahmedfgad avatar May 10 '19 15:05 ahmedfgad