Changeset 9922:2f01b390b92c in orange


Ignore:
Timestamp:
02/07/12 13:33:11 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

data.variable -> feature

Location:
Orange
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Orange/multilabel/lp.py

    r9671 r9922  
    5050 
    5151def transform_to_powerset(instances): 
    52     new_class = Orange.data.variable.Discrete("label") 
     52    new_class = Orange.feature.Discrete("label") 
    5353     
    5454    for e in instances: 
  • Orange/multitarget/tree.py

    r9671 r9922  
    9292         
    9393        :param feature: Continuous feature to be split. 
    94         :type feature: :class:`Orange.data.variable` 
     94        :type feature: :class:`Orange.feature.Descriptor` 
    9595 
    9696        :param data: The data set to be split using the given continuous feature. 
     
    119119 
    120120        :param feature: Continuous feature to be split. 
    121         :type feature: :class:`Orange.data.variable` 
     121        :type feature: :class:`Orange.feature.Descriptor` 
    122122 
    123123        :param data: The data set to be split using the given continuous feature. 
     
    134134        """ 
    135135        :param feature: The feature to be scored. 
    136         :type feature: :class:`Orange.data.variable` 
     136        :type feature: :class:`Orange.feature.Descriptor` 
    137137 
    138138        :param data: The data set on which to score the feature. 
  • Orange/network/community.py

    r9671 r9922  
    2626        items = Orange.core.Preprocessor_ignore(items, attributes=exclude) 
    2727 
    28     attrs = [Orange.data.variable.Discrete('clustering label propagation', 
     28    attrs = [Orange.feature.Discrete('clustering label propagation', 
    2929                            values=list(set([l for l in lblhistory[-1]])))] 
    3030 
     
    4545        items = Orange.core.Preprocessor_ignore(items, attributes=exclude) 
    4646 
    47     attrs = [Orange.data.variable.Discrete('c' + str(i), values=list(set(\ 
     47    attrs = [Orange.feature.Discrete('c' + str(i), values=list(set(\ 
    4848            [l for l in lblhistory[0]]))) for i, _ in enumerate(lblhistory)] 
    4949 
  • Orange/network/deprecated.py

    r9916 r9922  
    17821782                     
    17831783        if results2items and not resultHistory2items: 
    1784             attrs = [Orange.data.variable.Discrete( 
     1784            attrs = [Orange.feature.Discrete( 
    17851785                                        'clustering label propagation', 
    17861786                                        values=list(set([l for l \ 
     
    17931793                self.net.items = Orange.data.Table([self.net.items, data]) 
    17941794        if resultHistory2items: 
    1795             attrs = [Orange.data.variable.Discrete('c'+ str(i), 
     1795            attrs = [Orange.feature.Discrete('c'+ str(i), 
    17961796                values=list(set([l for l in lblhistory[0]]))) for i,labels \ 
    17971797                in enumerate(lblhistory)] 
Note: See TracChangeset for help on using the changeset viewer.