Changeset 10012:4ba1aa91419d in orange


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

Fixed tests.

Location:
docs/reference/rst/code
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/discretization-entropy.py

    r9943 r10012  
    99diff = old.difference(new) 
    1010print "Redundant features (%d of %d):" % (len(diff), len(data.domain.features)) 
    11 print ", ".join(x.name for x in diff) 
     11print ", ".join(sorted(x.name for x in diff)) 
  • docs/reference/rst/code/exclude-from-regression.txt

    r9824 r10012  
    55statistics-contingency6.py 
    66correspondence.py 
     7simple_tree_random_forest.py 
  • 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   
  • docs/reference/rst/code/transformvalue-d2c.py

    r9987 r10012  
    55 
    66e1 = Orange.feature.Continuous("e=1") 
    7 e1.getValueFrom = Orange.core.ClassifierFromVar(whichVar = data.domain["e"]) 
     7e1.getValueFrom = Orange.core.ClassifierFromVar(whichVar=data.domain["e"]) 
    88e1.getValueFrom.transformer = Orange.data.utils.Discrete2Continuous() 
    9 e1.getValueFrom.transformer.value = int(Orange.data.Value(e, "1")) 
     9 
  • docs/reference/rst/code/transformvalue-nc.py

    r9986 r10012  
    66newattrs = [] 
    77for attr in data.domain.features: 
    8     attr_c = Orange.feature.Continous(attr.name+"_n") 
    9     attr_c.getValueFrom = Orange.core.ClassifierFromVar(whichVar = attr) 
     8    attr_c = Orange.feature.Continuous(attr.name + "_n") 
     9    attr_c.getValueFrom = Orange.core.ClassifierFromVar(whichVar=attr) 
    1010    transformer = Orange.data.utils.NormalizeContinuous() 
    1111    attr_c.getValueFrom.transformer = transformer 
Note: See TracChangeset for help on using the changeset viewer.