Icon

Linear Regression vs. Regression Tree

Loading the Auto-MPG data from a table.Splitting the data into the training and testing data sets Regression modelsRT Parameters are:-Tree depth = 3-Minimum node size = 10 Regression models on Auto+MPG data setThis workflow shows a regression tree to model MPG (milesper gallon) of cars based on their HP (horsepower). Thisexample uses the Auto MPG Data Set from the UCI MachineLearning Repository (https://archive.ics.uci.edu/ml/datasets/Auto+MPG). Applying the trained model Comparing the models-Scatter plot of observed(testing data) vs the model- Numeric errors Train- test80% - 20%Regression treeMPG vs HPPredictions ontest dataLoading the Auto-MPGdata tableprepare data for the scatter plotcolorpredictionsvs. actualsMPG vs. HP+ RT predictionslinear regressionMPG vs HPpredictions ontest datacompare errorsfor RT and LRprepare data for the scatter plotcolorpredictionsvs. actualsMPG vs. HP+ LR predictions Partitioning Simple RegressionTree Learner Simple RegressionTree Predictor Table Reader Prepare data Color Manager Scatter Plot Linear RegressionLearner RegressionPredictor compareperformances Prepare data Color Manager Scatter Plot Loading the Auto-MPG data from a table.Splitting the data into the training and testing data sets Regression modelsRT Parameters are:-Tree depth = 3-Minimum node size = 10 Regression models on Auto+MPG data setThis workflow shows a regression tree to model MPG (milesper gallon) of cars based on their HP (horsepower). Thisexample uses the Auto MPG Data Set from the UCI MachineLearning Repository (https://archive.ics.uci.edu/ml/datasets/Auto+MPG). Applying the trained model Comparing the models-Scatter plot of observed(testing data) vs the model- Numeric errors Train- test80% - 20%Regression treeMPG vs HPPredictions ontest dataLoading the Auto-MPGdata tableprepare data for the scatter plotcolorpredictionsvs. actualsMPG vs. HP+ RT predictionslinear regressionMPG vs HPpredictions ontest datacompare errorsfor RT and LRprepare data for the scatter plotcolorpredictionsvs. actualsMPG vs. HP+ LR predictions Partitioning Simple RegressionTree Learner Simple RegressionTree Predictor Table Reader Prepare data Color Manager Scatter Plot Linear RegressionLearner RegressionPredictor compareperformances Prepare data Color Manager Scatter Plot

Nodes

Extensions

Links