FeatureReductionGenetic
FeatureReductionGenetic copied to clipboard
fix value for parameter gamma
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.)
But it is OK to assign the parameter gamma a string value as long as it is interpreted by scikit-learn as a number.
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.