source: orange/docs/reference/rst/code/svm-linear-weights.py @ 10012:4ba1aa91419d

Revision 10012:4ba1aa91419d, 364 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Fixed tests.

Line 
1from Orange import data
2from Orange.classification import svm
3
4brown = data.Table("brown-selected")
5classifier = svm.SVMLearner(brown,
6                            kernel_type=svm.kernels.Linear,
7                            normalization=False)
8
9weights = svm.get_linear_svm_weights(classifier)
10print sorted(weights)
11
12import pylab as plt
13plt.hist(weights.values())
Note: See TracBrowser for help on using the repository browser.