Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Unsupervised Metrics | Unsupervised Learning Metrics
Evaluation Metrics in Machine Learning

bookChallenge: Unsupervised Metrics

Tarea

Swipe to start coding

You will perform a full unsupervised model evaluation pipeline, consisting of anomaly detection, dimensionality reduction, and clustering.

Perform the following steps:

1. Anomaly Detection Evaluation

  • Use the make_classification dataset from scikit-learn with strong class imbalance (weights=[0.95, 0.05]).
  • Train an IsolationForest model to detect anomalies.
  • Compute:
    • Precision.
    • Recall.
    • ROC–AUC.

2. Dimensionality Reduction Evaluation

  • Apply PCA to the dataset (2 components).
  • Compute:
    • Explained Variance Ratio.
    • Reconstruction Error between original and inverse-transformed data.

3. Clustering Evaluation

  • Apply KMeans with n_clusters=3 on the PCA-reduced data.
  • Compute:
    • Inertia.
    • Silhouette Score.
    • Davies–Bouldin Score.
    • Calinski–Harabasz Score.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 5
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

Awesome!

Completion rate improved to 6.25

bookChallenge: Unsupervised Metrics

Desliza para mostrar el menú

Tarea

Swipe to start coding

You will perform a full unsupervised model evaluation pipeline, consisting of anomaly detection, dimensionality reduction, and clustering.

Perform the following steps:

1. Anomaly Detection Evaluation

  • Use the make_classification dataset from scikit-learn with strong class imbalance (weights=[0.95, 0.05]).
  • Train an IsolationForest model to detect anomalies.
  • Compute:
    • Precision.
    • Recall.
    • ROC–AUC.

2. Dimensionality Reduction Evaluation

  • Apply PCA to the dataset (2 components).
  • Compute:
    • Explained Variance Ratio.
    • Reconstruction Error between original and inverse-transformed data.

3. Clustering Evaluation

  • Apply KMeans with n_clusters=3 on the PCA-reduced data.
  • Compute:
    • Inertia.
    • Silhouette Score.
    • Davies–Bouldin Score.
    • Calinski–Harabasz Score.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 5
single

single

some-alt