Changeset 7488:22b9bf875172 in orange


Ignore:
Timestamp:
02/04/11 17:33:54 (3 years ago)
Author:
tomazc <tomaz.curk@…>
Branch:
default
Convert:
1f0bd5aab7b92f9bc557bb0922b522e8d7b8798e
Message:

Documentatio and code refactoring at Bohinj retreat.

Location:
orange/Orange/feature
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/feature/discretization.py

    r7453 r7488  
    147147    is given below:: 
    148148 
     149        from Orange.feature import discretization 
    149150        bayes = Orange.classification.bayes.NaiveBayesLearner() 
    150         disc = orange.Preprocessor_discretize(method=Orange.feature.discretization.EquiNDiscretization(numberOfIntervals=10)) 
    151         dBayes = Orange.feature.discretization.DiscretizedLearner(bayes, name='disc bayes') 
    152         dbayes2 = Orange.feature.discretization.DiscretizedLearner(bayes, name="EquiNBayes", discretizer=disc) 
     151        disc = orange.Preprocessor_discretize(method=discretization.EquiNDiscretization(numberOfIntervals=10)) 
     152        dBayes = discretization.DiscretizedLearner(bayes, name='disc bayes') 
     153        dbayes2 = discretization.DiscretizedLearner(bayes, name="EquiNBayes", discretizer=disc) 
    153154        results = Orange.evaluation.testing.CrossValidation([dBayes], table) 
    154         classifier = Orange.feature.discretization.DiscretizedLearner(bayes, examples=table) 
     155        classifier = discretization.DiscretizedLearner(bayes, examples=table) 
    155156 
    156157    """ 
  • orange/Orange/feature/scoring.py

    r7453 r7488  
    471471 
    472472import Orange.core as orange 
     473 
    473474from orange import MeasureAttribute as Measure 
    474  
    475475from orange import MeasureAttribute_info as InfoGain 
    476476from orange import MeasureAttribute_gainRatio as GainRatio 
Note: See TracChangeset for help on using the changeset viewer.