• Nie Znaleziono Wyników

Exercise 1

N/A
N/A
Protected

Academic year: 2021

Share "Exercise 1"

Copied!
1
0
0

Pełen tekst

(1)

Exercise 1

Table is to be used to build a decision tree to classify whether a patient has a cold or flu. As part of this process the Fever column is being considered as a splitting point.

Two potential splitting values are being considered:

a. Where the data is divided into two sets where (1) Fever is none and (2) Fever is mild and severe.

b. Where the data is divided into two sets where (1) Fever is severe and (2) Fever is none and mild.

Calculate, using the entropy impurity calculation, the gain for each of these splits.

Exercise 2

A kNN model is being used to predict house prices. A training set was used to generate a kNN model and k is determined to be 5. The unseen observation in Table 7.24 is presented to the model. The kNN model determines the five observations in Table 7.25 from the training set to be the most similar. What would be the predicted house price value?

Answers:

Exercise 1: a= 0.73, b= 1.0

Exercise 2: $352,600

Cytaty

Powiązane dokumenty

• “Nowy Sącz Experiment” in the end of 50’s and 60’s years and its influence on city's innovation,.. • 7 economical “tigers” – there is always somebody behind

A female consumer is subject to the opinion of the media - the world is a world of consumption externality and the woman tries to meet that ideal.. When she fails she

Solid Edge® software for Wiring Design enables the creation of fully functional and manufactur- able designs in a seamless mechanical computer-aided design (MCAD) and

The radius of the circle circumscribing this triangle is equal to:A. The centre of the circle

State whether the following statements are true or false for the information illustrated in the Venn Diagram.. The universal set U is defined as the set of positive integers less

Oblasti takového výzkumu jsou potom: toponymie různých sociálních skupin, sociální aspekty toponymické kompetence (znalosti a užívání toponym), ne-

Insulating only the roofs and the lower parts of the wall (under the windows and behind the radiators), placing additional glass panels in front of the windows and

Insulating only the roofs and the lower parts of the wall (under the windows and behind the radiators), placing additional glass panels in front of the windows and