Ignore:
Timestamp:
02/07/12 23:36:43 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
0126279d637fd84adb7a8942e1f43397f9b42814
Message:

Fixed tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/svm-linear-weights.py

    r9823 r10012  
    1 from Orange import data  
     1from Orange import data 
    22from Orange.classification import svm 
    33 
    44brown = data.Table("brown-selected") 
    5 classifier = svm.SVMLearner(brown,  
    6                             kernel_type=svm.kernels.Linear,  
     5classifier = svm.SVMLearner(brown, 
     6                            kernel_type=svm.kernels.Linear, 
    77                            normalization=False) 
    88 
    99weights = svm.get_linear_svm_weights(classifier) 
    10 print weights 
     10print sorted(weights) 
    1111 
    1212import pylab as plt 
    1313plt.hist(weights.values()) 
    14   
Note: See TracChangeset for help on using the changeset viewer.