Icon

Logistic_Regression_Solution

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/

Annotations and comments
  • Exercise: Logistic Regression In this exercise we will train a Logistic Regresion 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%). %%00009- 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
  • Logistic Regresion: color prediction
  • Read data wine.csv
  • Train the model to predict wine color
  • Z-Score Normalization on all numerical columns
  • Top: train set (80%) Bottom: test set (20%) Stratified sampling on color
  • Evaluate model accuracy

Nodes

Extensions

Links