Closed duboism closed 10 years ago
By the way is the goal of get_params
is to be able to reconstruct an identical object (by passing the dictionary to the constructor)? In this case, it should return the same parameters than in __init__
.
Great!
However, the start_vector is actually never used in ExcessiveGapMethod, though is could be used in other algorithms in the future...
Note that in Excessive gap the start vector is given by the algorithm. It is possible to override this and force a given start vector (though, the algorithm is not guaranteed to converge in this case), but in that case the start vector is given explicitly to the fit method (but we do not allow that currently ;-)).
Yes, precisely, the idea of the get_params was to obtain all fields of the object so that it can be reconstructed using set_params. This is not implemented, nor tested, properly yet, though... Essentially, anything passed to init should be returned by get_params, but sometimes other parameters (computed ones) may be returned as well.
Hello,
Fouad and I have found the following issues in
RidgeRegression_SmoothedL1TV
:get_params
method try to accessself.A
(in estimators.py line 892) which doesn't exist; it should instead returnself.Atv
andself.Al1
__init__
function calls the parent__init__
(i.e.RegressionEstimator.__init__
) without passingstart_vector
(therefore the default value inRegressionEstimator.__init__
(which is a random vector) will always be used); if it makes sense to use a differentstart_vector
it should be added in__init__
and passed to the parent__init__