Compute the Gini index for the Gender attribute.

Consider the training examples shown in Table 4.1 for a binary classification

problem.


The gini for Male is 1 ? 2 × 0.52 = 0.5. The gini for Female is also 0.5.
Therefore, the overall gini for Gender is 0.5 × 0.5+0.5 × 0.5=0.5.

Computer Science & Information Technology

You might also like to view...

The height of an empty tree is -1.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Testing an Android app is called ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

________ is an I/O-performance-enhancement technique—it reduces the number of I/O operations by combining smaller outputs together in memory; the number of physical I/O operations is much smaller than the number of I/O requests issued by the program.

a. Aggregating b. Accumulating c. Amassing d. Buffering

Computer Science & Information Technology

Before creating the chart, you must first define the starting, incremental, and stopping values that display on the value axis

Indicate whether the statement is true or false

Computer Science & Information Technology