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. 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. > > >
