Changeset 7473:3e60955da43c in orange


Ignore:
Timestamp:
02/04/11 16:53:39 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
ffb23a8b9b0ca02445a9d6dda23f05ee1d714c71
Message:

Replaced orngTest with Orange.evaluation.testing.

Location:
orange/doc/Orange/rst/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/majority-classification.py

    r7401 r7473  
    11# Description: Shows how to "learn" the majority class and compare other classifiers to the default classification 
    22# Category:    default classification accuracy, statistics 
    3 # Classes:     MajorityLearner, Orange.evaluate.crossValidation 
     3# Classes:     MajorityLearner, Orange.evaluation.testing.crossValidation 
    44# Uses:        monks-1 
    55# Referenced:  majority.htm 
    66 
    77import Orange 
    8 import orngTest, orngStat 
     8import orngStat 
    99 
    1010table = Orange.data.Table("monks-1") 
     
    1515learners = [treeLearner, bayesLearner, majorityLearner] 
    1616 
    17 res = orngTest.crossValidation(learners, table) 
     17res = Orange.evaluation.testing.crossValidation(learners, table) 
    1818CAs = orngStat.CA(res, reportSE = 1) 
    1919 
  • orange/doc/Orange/rst/code/mean-regression.py

    r7433 r7473  
    66 
    77import Orange 
    8 import orngTest, orngStat 
     8import orngStat 
    99 
    1010table = Orange.data.Table("housing") 
     
    1414learners = [treeLearner, meanLearner] 
    1515 
    16 res = orngTest.crossValidation(learners, table) 
     16res = Orange.evaluation.testing.crossValidation(learners, table) 
    1717MSEs = orngStat.MSE(res) 
    1818 
Note: See TracChangeset for help on using the changeset viewer.