Hub
Pricing About
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Community Hub
  • falaimo
  • Spaces
  • Public
  • KNIME Analytics Platform per Data Scientists, corso base
  • 06_Logistic_Regression (check overfitting)
WorkflowWorkflow

Logistic Regression (verificare se si è in overfitting)

Classification Machine learning Prediction Analytics KNIME
+4
Falaimo profile image

Last edited: 

Drag & drop
Like
Download workflow
Copy short link
Workflow preview
Per verificare se i valori elevati di accuratezza dell'algoritmo Logistic regression non siano dovuti ad overfitting, in questa variante del workflow originale, provo a separare tutte le osservazioni utilizzando l'algoritmo di clustering K-means, per determinare se questo riesce a separarle alla stessa maniera. Utilizzando un loop di ottimizzazione per K-means e il nodo Silhouette, ricavo che il numero di cluster ottimale è due (corrisponde col problema di classificazione binaria) e graficamente, tramite l'utilizzo di PCA e del nodo 3D Scatter Plot riesco a visualizzare che le osservazioni sono adeguatamente 'separate', quindi che le performance dell'algoritmo di logistic regression sono corrette e non sono dovute ad overfitting. Con una pivot sui dati clusterizzati si può costruire una pseudo matrice di confusione e l'accuratezza, anche utilizzando il clustering, rimane elevata (per questa elaborazione circa 99% per i bianchi e 95% per i rossi).

External resources

  • Logistic Regression Node: Algorithm Settings

Used extensions & nodes

Created with KNIME Analytics Platform version 4.6.3
  • Go to item
    KNIME Base nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.2

    knime
  • Go to item
    KNIME Distance Matrix Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  • Go to item
    KNIME JavaScript Views Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.2

    knime
  • Go to item
    KNIME Optimization extension Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  • Go to item
    KNIME Plotly Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item
Loading deployments
Loading ad hoc executions

Legal

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

Discussion
Discussions are currently not available, please try again later.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Business Hub
© 2023 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits