Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need right answer for all Supervised Machine Learning using ScikitLearn Classifiers Data The zip file MMIS671.hw2.data.zip contains 3 CSV files: hw2.train.csv,hw2.test.csv, and hw2.new.csv. The CSV
Need right answer for all
Supervised Machine Learning using ScikitLearn Classifiers Data The zip file "MMIS671.hw2.data.zip" contains 3 CSV files: "hw2.train.csv","hw2.test.csv", and "hw2.new.csv". The CSV file "hw2.train.csv"contains 50,000 rows and 51 columns. The first column 'y is the output variable with 3 classes: 0, 1, 2. The remaining 50 columns contain input features: x1, x2, ..., x50. The CSV file "hw2.test.csv"contains 10,000 rows and 51 columns. The first column 'y is the output variable with 3 classes: 0, 1, 2. The remaining 50 columns contain input features: x1, x2, - , x50. The CSV file "hw2.new.csv"contains 100 rows and 51 columns. The first column 'D' is an identifier for the 100 unlabeled samples. The remaining 50 columns contain input features: x1, x2, ---,x50. Task o Read data from the CSV files "hw2.train.csv", "hw2.test.csv", and "hw2.new.csv" into pandas dataframes train, test, and new, respectively. Confirm that the dataframes contain the correct number of rows and columns. Report the class distribution of 'y in train and test by specifying the proportion of examples in each class. Round the proportions to 4 decimal places. Class distribution of y: Proportion in train Proportion in test 0 1 2 Task 3. Use the trained chosen Model to predict the output classes for the 100 unlabeled examples in new. Report the predicted classes in the table below. Predicted y Predicted y ID Predicted y ID 26 76 77 78 ID Predictedy 1 2 3 4 5 6 7 8 9 10 11 12 13 ID 51 52 53 54 55 56 57 58 59 60 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 79 80 81 82 83 84 85 oc 86 87 88 89 90 14 15 16 17 18 19 20 21 22 23 24 25 61 62 63 64 65 66 67 68 69 70 91 92 93 94 - 95 96 97 98 99 100 71 72 73 74 75 Supervised Machine Learning using ScikitLearn Classifiers Data The zip file "MMIS671.hw2.data.zip" contains 3 CSV files: "hw2.train.csv","hw2.test.csv", and "hw2.new.csv". The CSV file "hw2.train.csv"contains 50,000 rows and 51 columns. The first column 'y is the output variable with 3 classes: 0, 1, 2. The remaining 50 columns contain input features: x1, x2, ..., x50. The CSV file "hw2.test.csv"contains 10,000 rows and 51 columns. The first column 'y is the output variable with 3 classes: 0, 1, 2. The remaining 50 columns contain input features: x1, x2, - , x50. The CSV file "hw2.new.csv"contains 100 rows and 51 columns. The first column 'D' is an identifier for the 100 unlabeled samples. The remaining 50 columns contain input features: x1, x2, ---,x50. Task o Read data from the CSV files "hw2.train.csv", "hw2.test.csv", and "hw2.new.csv" into pandas dataframes train, test, and new, respectively. Confirm that the dataframes contain the correct number of rows and columns. Report the class distribution of 'y in train and test by specifying the proportion of examples in each class. Round the proportions to 4 decimal places. Class distribution of y: Proportion in train Proportion in test 0 1 2 Task 3. Use the trained chosen Model to predict the output classes for the 100 unlabeled examples in new. Report the predicted classes in the table below. Predicted y Predicted y ID Predicted y ID 26 76 77 78 ID Predictedy 1 2 3 4 5 6 7 8 9 10 11 12 13 ID 51 52 53 54 55 56 57 58 59 60 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 79 80 81 82 83 84 85 oc 86 87 88 89 90 14 15 16 17 18 19 20 21 22 23 24 25 61 62 63 64 65 66 67 68 69 70 91 92 93 94 - 95 96 97 98 99 100 71 72 73 74 75Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started