[scikit-learn] RidgeCV with multiple targets returns a single alpha. Is it possible to get one alpha per target?
michael.eickenberg at gmail.com
Tue Aug 7 13:24:18 EDT 2018
You can get one alpha per target in the Ridge estimator (without CV). Then
you would have to code the cv loop yourself.
Depending on how many target you have this can be more efficient than
looping over targets as Alex suggests.
Either way there is some coding to do unfortunately.
On Tue, Aug 7, 2018 at 6:05 AM, Alexandre Gramfort <
alexandre.gramfort at inria.fr> wrote:
> you should call RidgeCV on all targets separately.
> On Tue, Aug 7, 2018 at 12:46 PM Christophe Pallier
> <christophe at pallier.org> wrote:
> > Hello,
> > I'd like to use RidgeCV to find the optimal alpha for each colunm
> (ntargets) of the DV variable.
> > It lloks like itthe fit() computes a single alpha. Is there a way to
> compute one alpha per column?
> > --
> > --
> > Christophe Pallier <christophe at pallier.org>
> > INSERM-CEA Cognitive Neuroimaging Lab, Neurospin, bat 145,
> > 91191 Gif-sur-Yvette Cedex, France
> > Tel: 00 33 1 69 08 79 34
> > Personal web site: http://www.pallier.org
> > Lab web site: http://www.unicog.org
> > _______________________________________________
> > scikit-learn mailing list
> > scikit-learn at python.org
> > https://mail.python.org/mailman/listinfo/scikit-learn
> scikit-learn mailing list
> scikit-learn at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scikit-learn