Changeset 9562:92c719dfcbe6 in orange


Ignore:
Timestamp:
01/23/12 12:36:47 (2 years ago)
Author:
lan <lan@…>
Branch:
default
Convert:
56a9b5d08baa4257fd2abbadf5e67b8ad663058c
Message:

Fixed bug in prediction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/regression/pls.py

    r9559 r9562  
    423423            ins = map(miss_2_0, ins) 
    424424        ins = numpy.array(ins) 
    425         xc = (ins - self.mu_x) / self.sigma_x 
    426         predicted = dot(xc, self.coefs) * self.sigma_y + self.mu_y 
     425        xc = (ins - self.mu_x) 
     426        predicted = dot(xc, self.coefs) + self.mu_y 
    427427        y_hat = [var(val) for var, val in zip(self.y_vars, predicted)] 
    428428        if result_type == Orange.core.GetValue: 
Note: See TracChangeset for help on using the changeset viewer.