hi,

you need to do it manually accessing the .coef_ and .intercept_ attributes
after fitting the model.

HTH
Alex


On Mon, Apr 21, 2014 at 6:58 AM, Michael Kneier
<michael.kne...@gmail.com> wrote:
> Hi All,
>
> I am using the LogisticRegression model on a sparse matrix of features. Due
> to the certain technical restrictions, I need to access the coefficients and
> their names. Could someone please explain how this can be done?
>
> For example, if I were to model y ~ var1 ..... var1000 , I would need
> something along the lines of:
>
> intercept: .123
> var1: .424
> ....
> var1000: 4.324
>
>
> Thanks in advance for your help.
> Mike Kneier
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to