Icon

04_​Logistic_​Regression_​exercise

Logistic Regression - exercise

Introduction to Machine Learning Algorithms course - Session 2
Exercise 4
- Train a logistic regression model
- Apply the model to the test set
- Evaluate the model performance 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 Read AmesHousing.csv 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 Read AmesHousing.csv CSV Reader Preprocessing

Nodes

Extensions

Links