Ignore:
Timestamp:
02/07/12 20:48:45 (2 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Message:

Documentation on domain continuization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/Orange.data.continuization.rst

    r9941 r9966  
    1111variable separately. 
    1212 
    13 .. class DomainContinuizer 
     13.. class:: DomainContinuizer 
    1414 
    1515    Returns a new domain containing only continuous attributes given a 
     
    2929      ``multinomial_treatment``. 
    3030 
    31     .. attribute zero_based 
     31    The typical use of the class is as follows:: 
     32 
     33        continuizer = orange.DomainContinuizer() 
     34        continuizer.multinomialTreatment = continuizer.LowestIsBase 
     35        domain0 = continuizer(data) 
     36        data0 = data.translate(domain0) 
     37 
     38    .. attribute:: zero_based 
    3239 
    3340        Determines the value used as the "low" value of the variable. When 
     
    3845        following text assumes the default case. 
    3946 
    40     .. attribute multinomial_treatment 
     47    .. attribute:: multinomial_treatment 
    4148 
    4249       Decides the treatment of multinomial variables. Let N be the 
     
    5461           used (directly) in, for instance, linear or logistic regression. 
    5562 
     63           For example, data set "bridges" has feature "RIVER" with 
     64           values "M", "A", "O" and "Y", in that order. Its value for 
     65           the 15th row is "M". Continuization replaces the variable 
     66           with variables "RIVER=M", "RIVER=A", "RIVER=O" and 
     67           "RIVER=Y". For the 15th row, the first has value 1 and 
     68           others are 0. 
     69 
    5670       DomainContinuizer.LowestIsBase 
    5771           Similar to the above except that it creates only N-1 
     
    6377           specified value is used as base instead of the lowest one. 
    6478 
     79           Continuizing the variable "RIVER" gives similar results as 
     80           above except that it would omit "RIVER=M"; all three 
     81           variables would be zero for the 15th data instance. 
     82 
    6583       DomainContinuizer.FrequentIsBase 
    66  
    6784           Like above, except that the most frequent value is used as the 
    6885           base (this can again be overidden by setting the descriptor's 
     
    7188           extracted from data, so this option cannot be used if constructor 
    7289           is given only a domain. 
     90 
     91           Variable "RIVER" would be continuized similarly to above 
     92           except that it omits "RIVER=A", which is the most frequent value. 
    7393            
    7494       DomainContinuizer.Ignore 
     
    87107           variable. 
    88108 
    89     .. attribute normalize_continuous 
     109    .. attribute:: normalize_continuous 
    90110 
    91111        If ``False`` (default), continues variables are left unchanged. If 
Note: See TracChangeset for help on using the changeset viewer.