Ignore:
Timestamp:
02/07/12 16:12:17 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
1d1ce52bf1c40adcceacdbc987601870f76893c1
Message:

data.variable -> feature.

File:
1 edited

Legend:

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

    r9756 r9927  
    2525          (:obj:`variable` is not :obj:`None`), `value` is a string with 
    2626          the symbolic value (as retrieved from 
    27           :obj:`Orange.data.variable.Discrete.values`). 
     27          :obj:`Orange.feature.Discrete.values`). 
    2828 
    2929        * If it is discrete and the variable descriptor is unknown, 
     
    3737 
    3838        Stores a value that corresponds to a variable that is neither 
    39         :obj:`Orange.data.variable.Discrete` nor 
    40         :obj:`Orange.data.variable.Continuous` or a distribution of a 
     39        :obj:`Orange.feature.Discrete` nor 
     40        :obj:`Orange.feature.Continuous` or a distribution of a 
    4141        discrete or continuous value. 
    4242 
    4343        This attribute is most often used for values of 
    44         :obj:`Orange.data.variable.StringVariable`; in that case `svalue` 
     44        :obj:`Orange.feature.StringVariable`; in that case `svalue` 
    4545        is an instance of :obj:`Orange.data.StringValue`. Distributions 
    4646        are seldom used; when `svalue` contains a distribution, it is 
     
    5656 
    5757        Read-only descriptor that gives the variable type. Can be 
    58         :obj:`Orange.data.Type.Discrete`, :obj:`Orange.data.Type.Continuous`, 
    59         :obj:`Orange.data.Type.String` or :obj:`Orange.data.Type.Other`. 
     58        :obj:`Orange.feature.Type.Discrete`, :obj:`Orange.feature.Type.Continuous`, 
     59        :obj:`Orange.feature.Type.String` or :obj:`Orange.feature.Type.Other`. 
    6060 
    6161    .. attribute:: value_type 
     
    7474 
    7575             import Orange 
    76              v = Orange.data.variable.Discrete("fruit", values=["plum", "orange", "apple"]) 
     76             v = Orange.feature.Discrete("fruit", values=["plum", "orange", "apple"]) 
    7777             an_apple = Orange.data.Value(v, "apple") 
    7878             another_apple = Orange.data.Value(v, 2) 
    7979             unknown_fruit = Orange.data.Value(v) 
    8080 
    81              v2 = Orange.data.variable.Continuous("iq") 
     81             v2 = Orange.feature.Continuous("iq") 
    8282             genius = Orange.data.Value(v2, 180) 
    8383             troll = Orange.data.Value(v2, "42") 
     
    8585 
    8686        :param variable: variable descriptor 
    87         :type variables: Orange.data.variable.Variable 
     87        :type variables: Orange.feature.Descriptor 
    8888        :param value: A value 
    8989        :type value: int, float or string, or another type accepted by descriptor 
     
    131131order is unambiguous. Here are two such values:: 
    132132 
    133     deg3 = Orange.data.variable.Discrete( 
     133    deg3 = Orange.feature.Discrete( 
    134134        "deg3", values=["little", "medium", "big"]) 
    135     deg4 = orange.data.variable.Discrete( 
     135    deg4 = orange.feature.Discrete( 
    136136        "deg4", values=["tiny", "little", "big", "huge"]) 
    137137    val3 = orange.Value(deg3) 
Note: See TracChangeset for help on using the changeset viewer.