source: orange/docs/reference/rst/code/svm-linear-weights.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 360 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1from Orange import data
2from Orange.classification import svm
3
4table = data.Table("brown-selected")
5classifier = svm.SVMLearner(table, 
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.