Icon

7. Linear Regression

Data ReadingRead the new file 'westnilevirus.csv'created after data preprocessing. It contains:1. Trap Type2. Number of Mosquitoes3. Species4. Test Results Data PartitioningCreate two separate partitionsfrom original data set1. training set (80%) 2. test set (20%). Train a ModelThis node builds a linear regressionmodel. Most Learner nodes output aPMML model (blue square outputport). Apply the ModelPredictor nodes apply a specificmodel to a data set and append themodel predictions. Score the ModelProvide with the Accuracy ofRegression in the form of RSquare training set test set Interactive TableDisplay table of the entiredata Simple Model Training for Linear RegressionThis workflow demonstrates how a Linear Regression Model is built and applied to new data.Task Predict the number of mosquitoes found on the basis of trap type. Reading westnilevirus.csvRandom drawing 80% upper port20% lower portShow entire data as tableTarget Class= Number of MosquitoesApply the trained modelfor predictionRegression Accuracy File Reader Partitioning InteractiveTable (local) Linear RegressionLearner RegressionPredictor Numeric Scorer Data ReadingRead the new file 'westnilevirus.csv'created after data preprocessing. It contains:1. Trap Type2. Number of Mosquitoes3. Species4. Test Results Data PartitioningCreate two separate partitionsfrom original data set1. training set (80%) 2. test set (20%). Train a ModelThis node builds a linear regressionmodel. Most Learner nodes output aPMML model (blue square outputport). Apply the ModelPredictor nodes apply a specificmodel to a data set and append themodel predictions. Score the ModelProvide with the Accuracy ofRegression in the form of RSquare training set test set Interactive TableDisplay table of the entiredata Simple Model Training for Linear RegressionThis workflow demonstrates how a Linear Regression Model is built and applied to new data.Task Predict the number of mosquitoes found on the basis of trap type. Reading westnilevirus.csvRandom drawing 80% upper port20% lower portShow entire data as tableTarget Class= Number of MosquitoesApply the trained modelfor predictionRegression Accuracy File Reader Partitioning InteractiveTable (local) Linear RegressionLearner RegressionPredictor Numeric Scorer

Nodes

Extensions

Links