Icon

04_​Logistic_​Regression_​solution

Logistic Regression - Solution

Introduction to Machine Learning Algorithms course - Session 2
Solution to exercise 4
- Train a logistic regression model
- Apply the model to the test set
- Evaluate the model performances with the Scorer node

Exercise: Logistic Regression1) Train a Logistic Regression model to predict the overall condition of a house (high/low) (Logistic Regression Learner node)- Select the "rank" column as the target column- Select "low" as the reference category- Leave other settings to their defaults2) Use the trained model to predict the rank of the houses in the test set (Logistic Regression Predictor node)3) Evaluate the accuracy of the logistic regression model (Scorer (JavaScript) node)- Select "rank" as the actual column and "Prediction (rank)" as the predicted column- What is the accuracy of the model? Classification: Logistic regression model Predict rankEvaluate Read AmesHousing.csvLogisticRegression Learner Logistic RegressionPredictor Scorer (JavaScript) CSV Reader Preprocessing Exercise: Logistic Regression1) Train a Logistic Regression model to predict the overall condition of a house (high/low) (Logistic Regression Learner node)- Select the "rank" column as the target column- Select "low" as the reference category- Leave other settings to their defaults2) Use the trained model to predict the rank of the houses in the test set (Logistic Regression Predictor node)3) Evaluate the accuracy of the logistic regression model (Scorer (JavaScript) node)- Select "rank" as the actual column and "Prediction (rank)" as the predicted column- What is the accuracy of the model? Classification: Logistic regression model Predict rankEvaluate Read AmesHousing.csvLogisticRegression Learner Logistic RegressionPredictor Scorer (JavaScript) CSV Reader Preprocessing

Nodes

Extensions

Links