IT446 Project Question 1 We chose “Heart Disease UCI” from the source:

IT446 Project

Question 1

We chose “Heart Disease UCI” from the source: “https://www.kaggle.com/ronitf/heart-disease-uci?select=heart.csv”

The screenshots show some of the information about the chosen database:

Question 2

The data has 14 attributes and 303 instances, which is appropriate with question requirements.

Q 3

The format of the data file here is CSV, so we need to prepare an ARFF format of the data file.

First, we need to open the heart.csv data file. then save it to heart.arff format.

here is the screenshot showing what we did.

CSV format write as this way:

age,sex,cp,trestbps,chol,fbs,restecg,thalach,exang,oldpeak,slope,ca,thal,target

63,1,3,145,233,1,0,150,0,2.3,0,0,1,1

37,1,2,130,250,0,1,187,0,3.5,0,0,2,1

41,0,1,130,204,0,0,172,0,1.4,2,0,2,1

56,1,1,120,236,0,1,178,0,0.8,2,0,2,1

57,0,0,120,354,0,1,163,1,0.6,2,0,2,1

57,1,0,140,192,0,1,148,0,0.4,1,0,1,1

56,0,1,140,294,0,0,153,0,1.3,1,0,2,1

44,1,1,120,263,0,1,173,0,0,2,0,3,1

52,1,2,172,199,1,1,162,0,0.5,2,0,3,1

57,1,2,150,168,0,1,174,0,1.6,2,0,2,1

54,1,0,140,239,0,1,160,0,1.2,2,0,2,1

48,0,2,130,275,0,1,139,0,0.2,2,0,2,1

49,1,1,130,266,0,1,171,0,0.6,2,0,2,1

64,1,3,110,211,0,0,144,1,1.8,1,0,2,1

On the other hand, ARFF format writes as this way:

@relation heart

@attribute age numeric

@attribute sex numeric

@attribute cp numeric

@attribute trestbps numeric

@attribute chol numeric

@attribute fbs numeric

@attribute restecg numeric

@attribute thalach numeric

@attribute exang numeric

@attribute oldpeak numeric

@attribute slope numeric

@attribute ca numeric

@attribute thal numeric

@attribute target numeric

@data

63,1,3,145,233,1,0,150,0,2.3,0,0,1,1

37,1,2,130,250,0,1,187,0,3.5,0,0,2,1

41,0,1,130,204,0,0,172,0,1.4,2,0,2,1

56,1,1,120,236,0,1,178,0,0.8,2,0,2,1

57,0,0,120,354,0,1,163,1,0.6,2,0,2,1

57,1,0,140,192,0,1,148,0,0.4,1,0,1,1

56,0,1,140,294,0,0,153,0,1.3,1,0,2,1

44,1,1,120,263,0,1,173,0,0,2,0,3,1

52,1,2,172,199,1,1,162,0,0.5,2,0,3,1

57,1,2,150,168,0,1,174,0,1.6,2,0,2,1

54,1,0,140,239,0,1,160,0,1.2,2,0,2,1

48,0,2,130,275,0,1,139,0,0.2,2,0,2,1

49,1,1,130,266,0,1,171,0,0.6,2,0,2,1

64,1,3,110,211,0,0,144,1,1.8,1,0,2,1

58,0,3,150,283,1,0,162,0,1,2,0,2,1

Q4

First, we have to open the Weka tool, then click on the Explorer button to load Weka Explorer, after that we click on the open button and choose the needed data file.

Here is the Weka Explorer contains the description of the dataset.