Icon

Logistic_​Regression_​Exercise

Logistic Regression

Logistic Regression: predict wine color.

- Normalize numerical columns
- Partition the dataset into train and test set
- Train a Logistic Regression model
- Apply the model to the test set
- Evaluate the model performance

URL: Behind the Scenes of Logistic Regression with KNIME https://youtu.be/-3y_o8j1pBA
URL: Logistic Regression Learner Node: Algorithm Settings https://youtu.be/AclQdjxpGA0
URL: Logistic Regression Learner Node: Output Values and Memory Handling https://youtu.be/ywPvpgFF2i4
URL: Guide to Intelligent Data Science https://www.datascienceguide.org/

Exercise: Logistic Regression


In this exercise we will train a Logistic Regression model that predicts whether a wine is red or white.

  1. Read data wine.csv (Hint: drag and drop)

  2. Use the Normalizer (PMML) node to z normalize all numerical columns

  3. Partition the dataset into a training set (80%) and a test set (20%).

    1. Apply stratified sampling on the color column.

  4. Train a logistic regression model on the training set, and apply the model to the test set

  5. Use the Scorer node to evaluate the accuracy of the model



Read data wine.csv
CSV Reader

Nodes

Extensions

Links