Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need help to solve Machine Learning problem related to Decision Tree using MATLAB : And here is the training_data3.txt : 24.466669,26.961086,24.145856,27.167400,24.412509,4 11.593199,8.933521,9.811961,12.420667,8.620738,2

Hi, I need help to solve Machine Learning problem related to Decision Tree using MATLAB :

image text in transcribed

And here is the "training_data3.txt":

24.466669,26.961086,24.145856,27.167400,24.412509,4 11.593199,8.933521,9.811961,12.420667,8.620738,2 17.768552,17.104207,19.276504,14.275528,13.489053,1 15.855582,8.855685,16.725686,17.503048,10.157513,1 11.551768,6.542925,7.275546,9.878409,11.385397,2 20.936323,11.254795,21.679818,17.298048,14.397147,1 3.915611,4.441217,4.989404,4.274581,4.838101,1 26.170496,29.442287,29.891884,25.531464,36.856994,4 4.482778,4.943406,13.489048,10.208365,9.669975,2 5.658279,4.679179,5.003361,3.017711,4.473303,1 10.592138,15.161833,16.436690,17.766905,17.619951,1 -5.649634,-9.406957,-6.925765,-11.334026,-8.978085,2 5.195380,3.610912,2.457870,2.641465,2.503717,1 20.485726,27.400172,30.190156,29.649536,29.332507,4 8.588032,8.828177,20.023731,13.347021,19.670835,1 -8.270345,-7.591896,-9.934257,-7.644621,-10.353054,2 -8.244963,-6.230557,-10.507585,-5.342500,-7.318915,2 3.858878,3.878570,2.323254,4.073267,3.821184,1 3.321030,4.885134,3.931313,2.431251,1.944259,1 4.564656,5.112060,3.253662,6.508002,4.289746,1 4.850046,3.643518,4.798786,2.601828,5.072807,1 -7.221614,-6.000564,-1.798549,-8.876933,-7.687554,2 -4.941809,-4.905065,-2.432762,-3.653262,-8.080393,2 -7.491085,-6.165473,-9.374228,-7.706111,-7.780243,2 10.188538,7.701984,12.711477,9.219880,22.615006,1 -8.583688,-7.146604,-8.091937,-8.148870,-10.690816,2 9.411166,10.875364,9.293331,10.692086,5.971027,2 6.542352,8.119182,9.512553,10.205153,10.024526,2 16.367539,15.694983,18.592749,6.144425,14.618765,1 3.938962,-5.800887,0.528606,-3.394951,-6.441336,3 16.481138,6.063925,16.482556,14.717838,11.425436,1 4.478563,5.528508,4.617638,4.018631,2.466089,1 13.750776,18.320717,13.952645,18.686272,14.141480,1 -5.595038,-4.980639,-5.499956,-11.479665,-4.769993,2 30.544553,23.955506,33.473719,26.493953,24.983479,4 4.130313,-5.371098,-3.666140,-0.724774,-1.294048,3 -9.002548,-8.768075,-8.063459,-8.153747,-6.725550,2 -0.625891,-2.097048,-4.497484,1.656010,2.526758,3 -5.420407,-14.240332,-5.139376,-8.991393,-6.361549,2 14.431873,19.475795,5.449131,16.707159,13.762224,1 18.324279,12.128100,13.042252,14.093998,20.743402,1 -7.160980,-6.283396,-5.609597,-4.585685,-7.217025,2 3.201716,4.150368,2.510322,4.074322,4.994123,1 1.519381,1.968360,2.444717,4.746945,4.906966,1 -7.611463,-5.288379,-5.742903,-9.118537,-4.832224,2 22.380965,27.999441,26.184131,20.878854,24.084262,4 1.977417,2.177711,2.810782,2.354121,0.064203,3 17.398122,12.966884,14.361102,13.659091,13.723681,1 24.917972,22.835017,25.432773,20.691834,28.207107,4 -3.422316,2.248897,2.707108,4.744901,1.760541,3

And here is the "testing_result3.txt":

9.067078,7.382518,12.098405,6.027637,14.917605 4.434696,3.423123,3.315135,4.232224,2.595301 11.816415,6.147833,7.644880,8.008287,8.861606 17.798381,13.317614,14.284303,20.916652,24.332544 -7.624936,-5.011472,-5.238504,-7.446695,-6.961380 32.735514,23.272983,26.369847,22.716123,30.038546

Please solve by Matlab progrmming. However, if you are not familiar with matlab, it is OK to use another language

3. Given a data set X = {x';r"}. , x' e R, r' {1...4}, in the file name training_data3.txt, (1) please build a decision tree for classification. Show your decision tree in the written report named final_report.pdf. (2) Please test your decision tree for classification on the data named "testing_data3.txt. Please save the testing result {r}- to the file called testing_result3.txt. (3) Please learn linear discriminant functions for the classification of the same data set X by gradient descent approach. Show your linear discriminant functions in the written report. 3. Given a data set X = {x';r"}. , x' e R, r' {1...4}, in the file name training_data3.txt, (1) please build a decision tree for classification. Show your decision tree in the written report named final_report.pdf. (2) Please test your decision tree for classification on the data named "testing_data3.txt. Please save the testing result {r}- to the file called testing_result3.txt. (3) Please learn linear discriminant functions for the classification of the same data set X by gradient descent approach. Show your linear discriminant functions in the written report

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

Students also viewed these Databases questions