Hub
Pricing About
WorkflowWorkflow

4.1 k-Nearest Neighbors with k=4 (WineData)

Cross-ValidationHyper-ParametersParameter OptimizationEducationTuning
carstenlange profile image
Draft Latest edits on 
Mar 21, 2024 8:14 PM
Drag & drop
Like
Download workflow
Workflow preview
This workflow repeats the k-Nearest Neighbors wine color analysis from Chapter 4 of the textbook Practical Machine Learning with R (https:\\ai.lange-analytics.com). We use the same training and testing data as in Chapter 4. The training data are normalized by subtracting the mean and dividing the result by the standard deviation of the training dataset. Afterward, the node "Normalizer (Apply)" applies the mean and the standard deviation from the training data to normalize the testing data. The "K Nearest Neighbor" node runs a 4-Nearest Neighbor model and the "Scorer" node generates a confusion matrix and other metrics based on the testing data.

External resources

  • Contact the author
  • Open the related R analysis in RStudio
  • Practical Machine Learning with R
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.2.2
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.2

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits