Icon

Building a Simple Classifier

There has been no title set for this workflow's metadata.

From adult data set (census data) predict income group from demographic attributes.

URL: KNIME's Learning page https://www.knime.com/learning

Annotations and comments
  • Simple Model Training for Classification This workflow demonstrates how a simple classifier is built and applied to new data. Find more information on KNIME’s Learning page at http://www.knime.com/learning (courses, tutorials, cheatsheets, books, and more)
  • Task Predict the income group from demographic attributes of the adult data set (census data)
  • Data Reading Read the adult data set file. There is one row for each person, plus demographic info and the income group. The file is located in TheData/Basics/.
  • Data Partitioning Create two separate partitions from original data set: training set (80%) and test set (20%). The test set deliberately consists of unseen data that will not be used for training.
  • Train a Model This node builds a decision tree. Other Learner nodes train other models. Most Learner nodes output a PMML model (blue square output port).
  • Apply the Model Predictor nodes apply a specific model to a data set and append the model predictions.
  • Score the Model Compute a confusion matrix between real and predicted class values and calculate the related accuracy measures.
  • Descriptive Statistics Calculate the statistical properties of the data set attributes.
  • Visualize Create interactive scatter plot.
  • Reading adult.csv
  • Train to predict class "income"
  • Apply decision tree model to test set
  • Random drawing 80% upper port 20% lower port
  • Age vs. number-hours
  • Compute model accuracy
  • Stats and exploratory histograms in View

Nodes

Extensions

Links