Changeset 10794:39d5727f34b3 in orange


Ignore:
Timestamp:
04/16/12 11:15:04 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Children:
10795:cc21ba900e44, 10803:921898cb37bd
Message:

Corrected model statistics, when not using intercept.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Regression/OWLinearRegression.py

    r10760 r10794  
    181181         
    182182        domain = Orange.data.Domain(columns, None) 
    183         vars = ["Intercept"] #if m.intercept else [] 
     183        vars = ["Intercept"] if m.intercept else [] 
    184184        vars.extend([a.name for a in m.domain.attributes]) 
    185185        stats = [] 
     
    193193            stats.append([var, coef, std_err, t_val, p]) 
    194194                 
    195         print Orange.data.Table(domain, stats)[:] 
    196195        return Orange.data.Table(domain, stats) 
    197196     
Note: See TracChangeset for help on using the changeset viewer.