Revision 10388:c6f2a5ae8087,
635 bytes
checked in by janezd <janez.demsar@…>, 2 years ago
(diff) 
Moved documentation about regression.mean to rst and simplified it; minor fixes in classification.majority

Line  

1  ################ 

2  Mean (``mean``) 

3  ################ 

4  

5  .. py:currentmodule:: Orange.regression.mean 

6  

7  .. index:: regression; mean 

8  

9  Accuracy of a regressor is often compared with the accuracy achieved 

10  by always predicting the averag value. The "learning algorithm" 

11  computes the average and represents it with a regressor of type 

12  :obj:`Orange.classification.ConstantClassifier`. 

13  

14  .. rubric:: Examples 

15  

16  The following example compares the mean squared error of always 

17  predicting the average with the error of a tree learner. 

18  

19  :download:`meanregression.py <code/meanregression.py>`: 

20  

21  .. literalinclude:: code/meanregression.py 

22  :lines: 7 

Note: See
TracBrowser
for help on using the repository browser.