Changeset 8917:88ba39c9fdb3 in orange


Ignore:
Timestamp:
09/07/11 11:29:43 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
2ed7a201dfccfd43f4c44634ca878f681d69df66
Message:

Improved documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/majority.py

    r8104 r8917  
    3333.. class:: ConstantClassifier 
    3434 
    35     ConstantClassifier always classifies to the same class and reports 
     35    ConstantClassifier always classifies to the same class and reports the 
    3636    same class probabilities. 
    3737 
     38    Its constructor can be called without arguments, with a variable (for 
     39    :obj:`class_var`), value (for :obj:`default_val`) or both. If the value 
     40    is given and is of type :obj:`Orange.data.Value` (alternatives are an 
     41    integer index of a discrete value or a continuous value), its attribute 
     42    :obj:`Orange.data.Value.variable` will either be used for initializing 
     43    :obj:`class_var` if variable is not given as an argument, or checked 
     44    against the variable argument, if it is given.  
     45     
    3846    .. attribute:: default_val 
    3947     
     
    4351 
    4452        Class probabilities returned by the classifier. 
     53     
     54    .. attribute:: class_var 
     55     
     56        Class variable that the classifier predicts. 
    4557 
    46 The ConstantClassifier's constructor can be called without arguments, 
    47 with value (for default_val), variable (for class_var). If the value is 
    48 given and is of type Orange.data.Value (alternatives are an integer index 
    49 of a discrete value or a continuous value), its field variable will 
    50 either be used for initializing class_var if variable is not given as 
    51 an argument, or checked against the variable argument, if it is given.  
    5258 
    5359Examples 
Note: See TracChangeset for help on using the changeset viewer.