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

data.variable -> feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/forest.py

    r9733 r9919  
    194194     
    195195    :param class_var: the class feature. 
    196     :type class_var: :class:`Orange.data.variable.Variable` 
     196    :type class_var: :class:`Orange.feature.Descriptor` 
    197197 
    198198    """ 
     
    220220        # handle discreete class 
    221221         
    222         if self.class_var.var_type == Orange.data.variable.Discrete.Discrete: 
     222        if self.class_var.var_type == Orange.feature.Discrete.Discrete: 
    223223         
    224224            # voting for class probabilities 
     
    336336         
    337337        :param feature: feature to evaluate (by index, name or 
    338             :class:`Orange.data.variable.Variable` object). 
    339         :type feature: int, str or :class:`Orange.data.variable.Variable`. 
     338            :class:`Orange.feature.Descriptor` object). 
     339        :type feature: int, str or :class:`Orange.feature.Descriptor`. 
    340340         
    341341        :param instances: data instances to use for importance evaluation. 
     
    352352          attrName = feature 
    353353          attrNo = instances.domain.index(attrName) 
    354         elif isinstance(feature, Orange.data.variable.Variable): 
     354        elif isinstance(feature, Orange.feature.Descriptor): 
    355355          atrs = [a for a in instances.domain.attributes] 
    356356          attrNo = atrs.index(feature) 
     
    512512        if not bcopy.measure: 
    513513            bcopy.measure = Orange.feature.scoring.Gini() \ 
    514                 if isinstance(instances.domain.class_var, Orange.data.variable.Discrete) \ 
     514                if isinstance(instances.domain.class_var, Orange.feature.Discrete) \ 
    515515                else Orange.feature.scoring.MSE() 
    516516 
Note: See TracChangeset for help on using the changeset viewer.