Changeset 10855:2ecaf1775170 in orange


Ignore:
Timestamp:
04/30/12 13:13:08 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
6b92c2c4b881566edc2adcb3cf8fc93f037b1e76
Message:

[BUG] Fixed a major bug in scaling a single respose column.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/regression/earth.py

    r10775 r10855  
    222222        if self.scale_resp and y.shape[1] == 1: 
    223223            sy = y - numpy.mean(y, axis=0) 
    224             sy = sy / numpy.std(sy, axis=1) 
     224            sy = sy / numpy.std(sy, axis=0) 
    225225        else: 
    226226            sy = y 
     
    603603    if (numpy.var(y, axis=0) <= 1e-8).any(): 
    604604        raise ValueError("Variance of y is zero (or near zero).") 
    605       
     605 
    606606    _c_forward_pass_(ctypes.byref(n_term), full_set, bx, dirs, cuts, 
    607607                     n_factors_in_terms, n_uses, x, y, weights, n_cases, 
Note: See TracChangeset for help on using the changeset viewer.