P
📊Analyse de donnéesIntermediateAll AIs

Analyze feature importance

Understand model feature importance

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Write Python code to compute and visualize feature importance from a trained [Random Forest/XGBoost/LightGBM] model. Include: built-in importance, permutation importance (on test set), and SHAP values. Compare methods and identify discrepancies. Highlight the top 15 features with a plot.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Use Cases

Understand model feature importance

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Attention : l’importance intégrée des arbres favorise les variables à forte cardinalité. Pour comparer fiablement, fixez une graine aléatoire et utilisez n_repeats≥10 pour la permutation. Si deux variables importantes sont fortement corrélées, leur importance peut être diluée : croisez ces résultats avec une analyse de corrélation avant de conclure.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

📊Analyse de donnéesIntermediateAll AIs

Stock and inventory data analysis

Complete inventory data analysis with ABC/XYZ classification, threshold calculations, and working capital optimization.

663
📊Analyse de donnéesIntermediateAll AIs

Retention Analysis

Improve user retention

333

Engineer date features

Extract features from datetime columns

402
📊Analyse de donnéesIntermediateAll AIs

Automated weekly report generation

Design an automated weekly reporting system with intelligent comments and contextual alerts.

548