2013/7/18 Wifi Gi prettyflyforawif...@gmail.com:
I am using Gaussian Bayes, Bernoulli Bayes, k-Nearest Neighbors, and the
Decision Tree. None of them are taking string classes, hence why I was using
the LabelEncoder. Maybe I have an old/broken version? I have scikit-learn
version 0.14.
The
+0200
From: Lars Buitinck l.j.buiti...@uva.nl
Subject: Re: [Scikit-learn-general] Associating a LabelEncoder with a
Classifier?
To: scikit-learn-general@lists.sourceforge.net
Message-ID:
CAKz-xUdB=
uzemdezdfpy0tegbhrsrepc8lyt1r04g08m_ro...@mail.gmail.com
Content-Type: text
2013/7/18 Wifi Gi prettyflyforawif...@gmail.com:
Lars,
Well, I'm confused now, sklearn.__version__ says 0.14-git. Did I download
the development branch?
Yes.
Your code works, so you're right, they do take string classifiers. My
problem appears to arise when trying to use the scorers:
If I
...@lists.sourceforge.net wrote:
--
Message: 2
Date: Thu, 18 Jul 2013 09:01:57 +0200
From: Lars Buitinck l.j.buiti...@uva.nl
Subject: Re: [Scikit-learn-general] Associating a LabelEncoder with a
Classifier?
To: scikit-learn-general@lists.sourceforge.net
Message-ID
: Associating a LabelEncoder with a Classifier? (Gilles Louppe)
--
Message: 3
Date: Thu, 18 Jul 2013 17:01:15 +0200
From: Lars Buitinck l.j.buiti...@uva.nl
Subject: Re: [Scikit-learn-general] Associating a LabelEncoder with a
Classifier?
To: scikit-learn
Buitinck l.j.buiti...@uva.nl
Subject: Re: [Scikit-learn-general] Associating a LabelEncoder with a
Classifier?
To: scikit-learn-general@lists.sourceforge.net
Message-ID:
CAKz-xUdB=
uzemdezdfpy0tegbhrsrepc8lyt1r04g08m_ro...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8
I'm aware of how to use LabelEncoder to convert string classes to numeric
and back again. However, in my applications, I frequently save my models to
disk (by pickling them) and reload them when I want to use them. When I use
predict(), it of course returns only numerical classes, and if you don't
2013/7/17 Wifi Gi prettyflyforawif...@gmail.com:
I'm aware of how to use LabelEncoder to convert string classes to numeric
and back again. However, in my applications, I frequently save my models to
disk (by pickling them) and reload them when I want to use them. When I use
predict(), it of
Lars,
I am using Gaussian Bayes, Bernoulli Bayes, k-Nearest Neighbors, and the
Decision Tree. None of them are taking string classes, hence why I was
using the LabelEncoder. Maybe I have an old/broken version? I have
scikit-learn version 0.14.
On Wed, Jul 17, 2013 at 5:30 PM,
You can pickle the label encoder too and use inverse_transform to transform
the integer predictions back into strings.
My 2 yens,
Mathieu
On Thu, Jul 18, 2013 at 3:56 AM, Wifi Gi prettyflyforawif...@gmail.comwrote:
I'm aware of how to use LabelEncoder to convert string classes to numeric
and
10 matches
Mail list logo