Re: [问题] Question about hw2

楼主: Yyh (我爱批踢踢)   2006-03-03 00:18:22
※ 引述《brooky (未够班)》之铭言:
: Hi,
: I am a little confused with the requirement of hw2.
: The requirement says,
: "We are interested in whether a single nominal attribute
: with 40 possible values or 40 binary attributes is better"
: Is this means, we should build classification tree according to
: these 40 binary attributes separately, and compare the result to
: "attribute with 40 values"?
: ex: according to "binary attribute 1"
: v.s.
: according to "40-value attributes"
: Or should we build a classification tree according to 40 binary
: attributes all together?
: ex: according to "binary attribute 1~40"
: v.s.
: according to "40-value attributes"
: If so, how to do this?
Here is a naive solution.
A for loop can be used to scan these 40 binary attributes,
and then set the "40-value attribute" as
"attribute number" of none-zero value.
Is there any better solution?
btw, the 40 binary attributes from left to right is 1~40, right?

Links booklink

Contact Us: admin [ a t ] ucptt.com