Icon

Exercise 5 - Regression Tree

Exercise 5: Regression Tree and Multiple Linear Regression Description: The dataset involves students' performance in secondary education of two Portuguese schools in the Mathematics (mat) subject. The prediction task aims to predict thestudent's final average math grade based on the factors of (1) study time and absences (2) G1 and G3 grades, and (4) social factors. The model to be evaluated in thisprediction task is the Regression Tree Model. Steps: 1) Read student-mat.csv2) Add Final Average Grade column3) Partition the data into a training set4) Train the regression tree model on the training set to predict the correlation of the selected variables to the final average grade5) Apply the model to the test set6) Evaluate the performance of the multiple linear regression with the Numeric Scorer node. Read Students RecordsTop: Training Set (80%)Bottom: Test Set (20%)Take from TopTrain the Model to Predict the FinalAverage GradeApply the Model to the Test SetEvaluate Model PerformanceCalculate Final Average Grade CSV Reader Partitioning Simple RegressionTree Learner Simple RegressionTree Predictor Numeric Scorer Math Formula Exercise 5: Regression Tree and Multiple Linear Regression Description: The dataset involves students' performance in secondary education of two Portuguese schools in the Mathematics (mat) subject. The prediction task aims to predict thestudent's final average math grade based on the factors of (1) study time and absences (2) G1 and G3 grades, and (4) social factors. The model to be evaluated in thisprediction task is the Regression Tree Model. Steps: 1) Read student-mat.csv2) Add Final Average Grade column3) Partition the data into a training set4) Train the regression tree model on the training set to predict the correlation of the selected variables to the final average grade5) Apply the model to the test set6) Evaluate the performance of the multiple linear regression with the Numeric Scorer node. Read Students RecordsTop: Training Set (80%)Bottom: Test Set (20%)Take from TopTrain the Model to Predict the FinalAverage GradeApply the Model to the Test SetEvaluate Model PerformanceCalculate Final Average GradeCSV Reader Partitioning Simple RegressionTree Learner Simple RegressionTree Predictor Numeric Scorer Math Formula

Nodes

Extensions

Links