Skip to content
This repository
Browse code

Python 2.6 bugfix for plot_rbf_parameters.py

  • Loading branch information...
commit 9abb2c7c09049c26ab45abf1eff409bdba7a1917 1 parent faa53bd
Daniel Duckworth duckworthd authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  examples/svm/plot_rbf_parameters.py
3  examples/svm/plot_rbf_parameters.py
@@ -94,7 +94,8 @@
94 94
95 95 # visualize decision function for these parameters
96 96 pl.subplot(len(C_2d_range), len(gamma_2d_range), k + 1)
97   - pl.title("gamma {}, C {}".format(gamma, C), size='medium')
  97 + pl.title("gamma 10^%d, C 10^%d" % (np.log10(gamma), np.log10(C)),
  98 + size='medium')
98 99
99 100 # visualize parameter's effect on decision function
100 101 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.