Ignore:
Timestamp:
03/19/12 22:26:52 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Corrected array shape for weights.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/regression/linear.py

    r10576 r10577  
    246246        if weight: 
    247247            weights = numpy.sqrt([float(ins[weight]) for ins in table]) 
    248             weights = weights.reshape(y.shape) 
    249             X = weights * X 
     248            X = weights.reshape(n, 1) * X 
    250249            y = weights * y 
    251250         
Note: See TracChangeset for help on using the changeset viewer.