Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The top node had 10 high taste items and 20 not high taste items. We determined the Gini score should be .5555. For the H2S

image text in transcribedimage text in transcribed

The top node had 10 high taste items and 20 not high taste items. We determined the Gini score should be .5555. For the H2S > 7 split, the > 7 child had 7 of 10 high and 3 of 10 not high. We determined the Gini score to be .58. The This program will calculate purity measures for a leaf node and display the Gini score and other values calculated. Please enter the number of objects in this leaf node of type I 7 Please enter the number of objects in this leaf node of type II 3 The Gini score for this node is 0.580 Assume that P() is the proportion or probability of an object of one type occurring. The formula for the Gini score is : Gini = (P(Type I objects))2 + (P(Type II objects))2 This program will calculate purity measures for a leaf node and display the Gini score and other values calculated. Please enter the number of objects in this leaf node of type I 7 Please enter the number of objects in this leaf node of type II 3 The Gini score for this node is 0.580 Assume that P() is the proportion or probability of an object of one type occurring. The formula for the Gini score is : Gini = (P(Type I objects))2 + (P(Type II objects))2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago