Closed JinpengLI closed 10 years ago
I added a warning message.
We can solve for this in the code. I'll take care of it.
I have changed it such that it only warns if k, the ridge parameter, is too small.
I have made it such that the code handles the parameters for L1 and TV. Now I set it to consts.TOLERANCE when it is smaller than that. This may not be the desired behaviour, however. We could ignore that part of the code if both the L1 and the TV parameters are too small.
What do you think?
When I use RidgeRegression_SmoothedL1TV, sometimes beta become NaN. Maybe it need to add a warning when one of "l, k, g" is zero.