[SOLVED] Machine-Learning Assignment 2-A2 Decision Tree and SVM

30.00 $

Category: Tags: , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon A2-Decision-Tree-and-SVM-li6t49.zip (225.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

The data set available for this assignment is based on the U.S. congress voting record from 1984. The data set consists of the votes (yes or no) on sixteen issues for each of the 435 members of congress. from the voting record. You will use this data to learn a decision tree that predicts the political party of the representative based on his /her vote. Use the voting data to train a decision tree to predict political party (Democrat or Republican) based on the voting record. Use 25% of the members of congress for training and the rest for testing. Rerun this experiment five times and notice the impact of different random splits of the data into training and test sets. Report the sizes and accuracies of these trees in each experiment.

1.

2.

Measure the impact of training set size on the accuracy and the size of the learned

tree. Consider training set sizes in the range (30-70%). Because of the high variance

due to random splits repeat the experiment with five different random seeds for each

training set size then report the mean, maximum and minimum accuracies at each

training set size. Also measure the mean, max and min tree size.

Start with training data size 30%, 40 Until you reach 70%.

The data set contained many missing values , i.e., votes in which a member of

congress failed to participate. To solve those issue insert for each absent

vote the voting decision of the majority.

Machine learning – Fall 2021

The attached dataset “heart.csv” contain 303 records of

Cost Function:

Update Weights Equations:
1- IfPointiscorrectlyclassified.

2- If Point is not correctly classified.

a) Split dataset into training and testing sets.
b) Try different set of features and choose the best features.

c) Try different values of learning rate and see how this changes the accuracy of the model.
d) Implement accuracy function (correctly predicted values / test set size).

not according to features in it. You are required to build SVM model to predict whether

patients have heart disease or

patient have heart disease or not (target).

 

  • A2-Decision-Tree-and-SVM-li6t49.zip