Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Implementing K-Means Clustering | K-Means
Cluster Analysis

Scorri per mostrare il menu

book
Challenge: Implementing K-Means Clustering

Compito

Swipe to start coding

You are given a synthetic dataset stored in the data variable.

  • Initialize a K-means model with 3 clusters, set random_state to 42, n_init to 'auto' and store it in the kmeans variable.
  • Fit the model on the dataset, predict the cluster labels, and store the result in the labels variable.
  • For each cluster i, extract the points belonging to this cluster and store the result in the cluster_points variable.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 7
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

book
Challenge: Implementing K-Means Clustering

Compito

Swipe to start coding

You are given a synthetic dataset stored in the data variable.

  • Initialize a K-means model with 3 clusters, set random_state to 42, n_init to 'auto' and store it in the kmeans variable.
  • Fit the model on the dataset, predict the cluster labels, and store the result in the labels variable.
  • For each cluster i, extract the points belonging to this cluster and store the result in the cluster_points variable.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 7
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt