> -----Original Message-----
> From: Ted Dunning [mailto:[email protected]]
> Sent: Sunday, May 29, 2011 12:48 PM
> To: [email protected]
> Subject: Re: Are the OnlineLogisticRegression s of a CrossFolderLearner 
> object equal after
> training?
> 
> The color column contains strings.  Internally, codes are assigned to those
> strings.
> 
> The book talks about the confusion that comes from using numerical values as
> codes for categorical values.  This is an example of that confusion.

Ok, then target values are always more than 0, I refer to this 

public class Dictionary {
  private final Map<String, Integer> dict = Maps.newLinkedHashMap();

  public int intern(String s) {
    if (!dict.containsKey(s)) {
      dict.put(s, dict.size());
    }
    return dict.get(s);
  }



> 
> On Sat, May 28, 2011 at 8:48 PM, XiaoboGu <[email protected]> wrote:
> 
> > >
> > >
> > > > "Multinomial models" means the number n of distinct values the target
> > is
> > > > more than 2, and they should be encoded as 0, 1, 2,......, n-1,
> > > >
> > >
> > > Yes.
> > But the values of the color column of donut.csv are encoded as 1 and 2.
> >
> >
> >

Reply via email to