Ignore:
Timestamp:
02/07/12 19:26:14 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
42219203d685928c8bb777610c858b7cc732a968
Message:

Modernized some example scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/imputation-complex.py

    r9638 r9945  
    122122def compute_span(ex, rw): 
    123123    if ex["TYPE"] == "WOOD" or ex["PURPOSE"] == "WALK": 
    124         return orange.Value(span_var, "SHORT") 
     124        return Orange.data.Value(span_var, "SHORT") 
    125125    else: 
    126         return orange.Value(span_var, "MEDIUM") 
     126        return Orange.data.Value(span_var, "MEDIUM") 
    127127 
    128128imputer.models[bridges.domain.index("SPAN")] = compute_span 
Note: See TracChangeset for help on using the changeset viewer.