With gamma='scale', the default, how does an RBF-kernel SVC compute gamma from the training data?
Correct answer
A. One divided by the number of features times the variance of the data X
20 views
A. One divided by the number of features times the variance of the data X
20 views
gamma='scale' sets gamma to 1/(n_features * X.var()), adapting the kernel width to the spread of the data; gamma='auto' uses 1/n_features instead. A larger gamma makes each point's influence local, producing a wiggly boundary that overfits, while a small gamma smooths it. Because the default depends on X.var(), changing the feature scaling changes the effective kernel.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is A? Ask here and get an explanation.