For some of the learners e.g. SdcaRegression ML.NET public API exposes parameter weights
However, the advanced Options for SdcaRegressionTrainer do not have a field for 'WeightColumn'. Also, I believe the algo itself does not use weights (need to verify)
We need to scrub our public API for such spurious uses of weights parameter.
EDIT :
SdcaRegressionTrainer does use the weights column. So the proper fix would be to ensure that the weight column passed in the constructor gets used by the trainer. WeightColumn in the advanced Options for SdcaRegressionTrainer and verify it gets used by the SDCA trainer.@sfilipi @glebuk @TomFinley
There are several additional problems with weigh parameters::
This comes from the command line days. However it does not make much sense from the API point of veiw.
seems related to issue #2177
However, the advanced
OptionsforSdcaRegressionTrainerdo not have a field for 'WeightColumn'. Also, I believe the algo itself does not use weights (need to verify)
Hi @abgoswam ... from what I see, it does. See here, in the SdcaTrainerBase.TrainCore method:
If the "connection" from weights in the constructor to weights in the trainer has been broken, that is what must be fixed. You should not remove the option -- you should make it work, right? At least so I would think.
@TomFinley . Correct. As you pointed out, for this issue we need a fix whereby the weight column passed in the constructor gets used by the trainer.
I have edited the bug description accordingly.
@glebuk . I created a separate issue #2257 for the 2 comments above regarding naming convention for the weights parameter
Removing api label, added bug label. Hence removing it from Project13 as well.
Most helpful comment
There are several additional problems with weigh parameters::
This comes from the command line days. However it does not make much sense from the API point of veiw.