Ignore:
Timestamp:
02/07/12 11:20:25 (2 years ago)
Author:
markotoplak
Branch:
default
Children:
9898:dfcfd4ad5287, 9901:577a5c5e60f2, 9918:4aa830c55525
rebase_source:
c0c0acbd9d24e8688aa06cf0943beae5aded8691
Message:

Put old variable documentation Orange.feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/variable-get_value_from.py

    r9823 r9897  
    22# Category:    core 
    33# Uses:        monks-1 
    4 # Referenced:  Orange.data.variable 
    5 # Classes:     Orange.data.variable.Discrete 
     4# Referenced:  Orange.feature 
     5# Classes:     Orange.feature.Discrete 
    66 
    77import Orange 
     
    1414 
    1515monks = Orange.data.Table("monks-1") 
    16 e2 = Orange.data.variable.Discrete("e2", values=["not 1", "1"])     
     16e2 = Orange.feature.Discrete("e2", values=["not 1", "1"])     
    1717e2.get_value_from = checkE  
    1818 
    19 print Orange.core.MeasureAttribute_info(e2, monks) 
     19print Orange.feature.scoring.InfoGain(e2, monks) 
    2020 
    2121dist = Orange.core.Distribution(e2, monks) 
Note: See TracChangeset for help on using the changeset viewer.