Skip to content
Browse files

Python 2.6 bugfix for plot_rbf_parameters.py

  • Loading branch information...
1 parent faa53bd commit 9abb2c7c09049c26ab45abf1eff409bdba7a1917 @duckworthd duckworthd committed May 31, 2012
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 9abb2c7

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