![]() |
#11
|
|||
|
|||
![]()
Thank you for confirming the flow.
Turns out when transforming the test and training set vectors, I was leaving in the bias term, thus x1 and x2 were screwy before creating the polynomial. eep. |
#12
|
|||
|
|||
![]()
Kekeli, could you explain this? What do you mean by the bias term?
Thanks (I'm still trying to debug my own code.) |
#13
|
|||
|
|||
![]()
Michael, I'm sorry I didn't see this until now.
While testing the file IO, I had inserted 1.0 into the vector of input variables after reading the contents of "in.dta". Then, when doing the nonlinear transformation, I was reading x1 as 1.0, and x2 as x1. Not surprisingly, the linear regression with or without weight decay didn't return the correct estimates for Ein and Eout. In the end, print statements saved the day. I just wish I'd started in the transformation and not everywhere else in the code. |
#14
|
|||
|
|||
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|