Generate interaction features
Discover feature interactions
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Write Python code to systematically generate and evaluate interaction features between the top [N] most predictive features in DataFrame df for target [target]. Create pairwise products, ratios, and differences. Use mutual information to rank interaction features and keep the top 20 that add signal beyond the original features.
Personalize this prompt with Léa
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pense à standardiser (Z-score) tes features avant de créer les interactions (produits, ratios). Cela évite que les variables à grande échelle dominent les calculs d'information mutuelle. Ajoute aussi un contrôle de multicolinéarité (VIF) après le filtrage pour ne conserver que les interactions réellement informatives.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.