Changeset 10167:cb5928aa4d3d in orange


Ignore:
Timestamp:
02/11/12 22:22:43 (2 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Message:

Fixed references, literal includes and typeos in Orange.data.utils

File:
1 edited

Legend:

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

    r9987 r10167  
    77================== 
    88 
    9 Value transformers are objects that take care of simple transformations 
    10 of values. Discretization, for instance, creates a transformer that 
     9Value transformers take care of simple transformations of 
     10values. Discretization, for instance, creates a transformer that 
    1111converts continuous values into discrete, while continuizers do the 
    1212opposite. Classification trees use transformers for binarization where 
    1313values of discrete attributes are converted into binary. 
    1414 
    15 These objects are most often constructed by other classes and only seldom 
    16 manually. See information on :file:`Orange.data.discretization` and 
    17 :file:`Orange.data.continuization`. 
     15These objects are most often constructed by other classes and only 
     16seldom manually. See information on :doc:`Orange.data.discretization` 
     17and :doc:`Orange.data.continuization`. 
    1818 
    1919.. class:: TransformValue 
    2020 
    21     The abstract root of the hierarchy of transformers provides the call 
    22     operator and chaining of transformers. 
     21    The abstract root of the hierarchy of transformers, which provides 
     22    the call operator and chaining of transformers. 
    2323 
    2424    .. attribute:: subtransformer 
     
    5757    .. attribute:: value 
    5858 
    59         The value that in converted to 1.0; others are converted to 0.0 
    60         or -1.0. Value needs to be specified by an integer index. 
     59        The value that is converted to 1.0; others are converted to 
     60        0.0 or -1.0, depending on :obj:`zero_based`. Value needs to be 
     61        specified by an integer index. 
    6162 
    6263    .. attribute:: zero_based 
     
    6465        Decides whether the other values will be transformed to 0.0 
    6566        (``True``, default) or -1.0 (``False``). 
    66         When ``False`` undefined values are transformed to 0.0; 
     67        When ``False``, undefined values are transformed to 0.0; 
    6768        otherwise, undefined values yield an error. 
    6869 
     
    7071 
    7172        If ``True`` (default is ``False``), the transformations are 
    72         reversed - the selected ``value<`` becomes 0.0 (or -1.0) 
     73        reversed - the selected ``value`` becomes 0.0 (or -1.0) 
    7374        and others 1.0. 
    7475 
    7576 
    76     The following script load the Monks 1 data set and constructs a new 
    77     attribute `e1` that will indicate whether `e` is 1 or not. 
     77    The following script loads the Monks 1 data set and constructs a 
     78    new attribute `e1` that will indicate whether `e` is 1 or not. 
    7879 
    7980    .. literalinclude:: code/transformvalue-d2c.py 
     
    8283.. class:: NormalizeContinuous 
    8384 
    84     Takes a continuous values and subtracts the ``average`` and 
    85     divides the difference by half of the ``span``. 
     85    Normalizes continuous values by subtracting the ``average`` and 
     86    dividing the difference by half of the ``span``. 
    8687 
    8788    .. attribute:: average 
    8889 
    89         The value that is subtracted from the original.</DD> 
     90        The value that is subtracted from the original. 
    9091 
    9192    .. attribute:: span 
    9293 
    93         The divisor 
     94        Divisor 
    9495 
    9596    The following script "normalizes" all attribute in the Iris dataset by 
     
    9798    deviation. 
    9899 
    99     .. literalinclude code/transformvalue-nc.py 
    100         :lines: 1-17 
     100    .. literalinclude:: code/transformvalue-nc.py 
     101        :lines: 7-19 
    101102 
    102103.. class:: MapIntValue 
    103104 
    104     A discrete-to-discrete transformer that changes values according to the 
    105     given mapping. MapIntValue is used for binarization in decision trees. 
     105    A discrete-to-discrete transformer that changes values according 
     106    to the given mapping. MapIntValue is used for binarization in 
     107    decision trees. 
    106108 
    107109    .. attribute:: mapping 
Note: See TracChangeset for help on using the changeset viewer.