Skip to content
Browse files

Merge pull request #877 from duckworthd/master

SVM Radial Basis Function Parameters Example Bugfix
  • Loading branch information...
2 parents 8e8d476 + 9abb2c7 commit b070cff873dfb2d7b7a58f32549a085fe0fb481e @mblondel mblondel committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/svm/plot_rbf_parameters.py
View
3 examples/svm/plot_rbf_parameters.py
@@ -94,7 +94,8 @@
# visualize decision function for these parameters
pl.subplot(len(C_2d_range), len(gamma_2d_range), k + 1)
- pl.title("gamma {}, C {}".format(gamma, C), size='medium')
+ pl.title("gamma 10^%d, C 10^%d" % (np.log10(gamma), np.log10(C)),
+ size='medium')
# visualize parameter's effect on decision function
pl.pcolormesh(xx, yy, -Z, cmap=pl.cm.jet)

0 comments on commit b070cff

Please sign in to comment.
Something went wrong with that request. Please try again.