Given the data set DS3. The DS3 is csv file. the last column of each data set, stores…
- User
Given the data set DS3. The DS3 is csv file. the last column of each data set, stores the labels of the examples of the dataset. Use Python to perform the following tasks: 3. DS3: (a)Load the data set,the file path of DS3 is 'C:/Users/11096/Desktop/Machine Learning/Experiment/lab2/D3.csv' , train an SVM with a linear kernel on the full data set, and plot the data set with the decision boundary. (b) Carry out leave-1-out cross-validation with an SVM on your dataset. Report the train and test performance. Train performance in this case is the performance on the training set, test performance, the performance of the leave-1-out cross-validation. You can change the leave-1-out cross-validation to something different. If you do so, explain what you did and why you chose this way of evaluating. (b) Pick a kernel and 2 parameters and optimize, optimize the parameters (similar to Assignment 1), plot again data set and decision boundary and give the performance. (c) Explain the results of the previous step.
- Assistant
- User
Given the data set DS2. The DS2 is csv file. the last column of each data set, stores the labels of the examples of the dataset.
Use Python to perform the following tasks: (a) Load the data set,the file path of DS2 is 'C:/Users/11096/Desktop/Machine Learning/Experiment/lab2/D2.csv' , train an SVM with a linear kernel on the full data set, and plot the data set with the decision boundary. (b) Carry out leave-1-out cross-validation with an SVM on your dataset. Report the train and test performance. Train performance in this case is the performance on the training set, test performance, the performance of the leave-1-out cross-validation. (c) Pick a kernel that will improve the SVM, plot the data set and resulting decision boundary, and give the performance. (d) Explain which kernel you chose and why.
- Assistant
- User
Given the data set DS2. The DS2 is csv file. the last column of each data set, stores the labels of the examples of the dataset.
Use Python to perform the following tasks: (a) Load the data set,the file path of DS2 is 'C:/Users/11096/Desktop/Machine Learning/Experiment/lab2/D2.csv' , train an SVM with a linear kernel on the full data set, and plot the data set with the decision boundary. (b) Carry out leave-1-out cross-validation with an SVM on your dataset. Report the train and test performance. Train performance in this case is the performance on the training set, test performance, the performance of the leave-1-out cross-validation. (c) Pick a kernel that will improve the SVM, plot the data set and resulting decision boundary, and give the performance. (d) Explain which kernel you chose and why.
- Assistant