source: orange/docs/reference/rst/code/svm-linear-weights.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 360 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

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 weights
11
12import pylab as plt
13plt.hist(weights.values())
14 
Note: See TracBrowser for help on using the repository browser.