Normalization and standardization
Data scaling
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
My dataset contains features with very different scales: [FEATURE_EXAMPLES_AND_RANGES]. I am going to train a [MODEL_TYPE] model. Explain which normalization/standardization technique to apply to each feature and why, along with the corresponding Python code.
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
Précisez le modèle : pour les algorithmes à base de distances ou linéaires (kNN, SVM, régression logistique), utilisez `StandardScaler`. Pour les réseaux de neurones, préférez `MinMaxScaler` (valeurs 0-1). Avec des outliers, `RobustScaler` est plus sûr. Appliquez toujours `fit_transform` sur le train puis `transform` sur le test.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.