Ignore:
Timestamp:
01/06/13 00:27:59 (16 months ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Message:

new tutorial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/tutorial/rst/code/assoc2.py

    r10304 r11051  
    55# Referenced:  assoc.htm 
    66 
    7 import orange, orngAssoc 
     7import orngAssoc 
     8import Orange 
    89 
    9 data = orange.ExampleTable("imports-85") 
    10 data = orange.Preprocessor_discretize(data, \ 
    11   method=orange.EquiNDiscretization(numberOfIntervals=3)) 
     10data = Orange.data.Table("imports-85") 
     11data = Orange.data.preprocess.Discretize(data, \ 
     12  method=Orange.data.discretization.EqualFreq(numberOfIntervals=3)) 
    1213data = data.select(range(10)) 
    1314 
    14 rules = orange.AssociationRulesInducer(data, support=0.4) 
     15rules = Orange.associate.AssociationRulesInducer(data, support=0.4) 
    1516 
    1617n = 5 
Note: See TracChangeset for help on using the changeset viewer.