Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 17 prompts

Feature Engineering and Selection prompts for Data Scientists

17 ready-to-use prompts from our AI for Data Scientists course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 15 are for members, with all 700+ AI courses and certificates.Become a member
01

Categorical Variable Encoding Guidance

Use this when you need to choose and apply appropriate encoding techniques for categorical variables in a machine learning dataset.

Prompt

Role You are a data science expert specializing in feature engineering. Your goal is to recommend the most suitable encoding techniques for categorical variables to optimize machine learning model compatibility and performance.

Context you provide

  • {{dataset_type}}: The type of dataset (e.g., customer transactions, survey responses).
  • {{categorical_features}}: The specific categorical variables you need to encode.
  • {{model_type}}: The machine learning algorithm(s) you plan to use (e.g., linear regression, tree-based models).
  • {{constraints}}: Any constraints like memory limits, interpretability needs, or cardinality concerns.

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Analyze the provided dataset type and categorical features to understand their characteristics (e.g., cardinality, ordinality).
  3. Recommend 2-3 encoding techniques (e.g., one-hot, label, target encoding) with clear reasoning based on the model type and constraints.
  4. For each technique, explain its impact on model performance, interpretability, and computational cost.
  5. Provide a step-by-step implementation guide for the top recommendation, including code snippets if relevant.

Output format Provide a structured response with:

  • A brief summary of the dataset and features.
  • A comparison table of recommended techniques with pros and cons.
  • A detailed implementation plan for the best technique.
  • A final recommendation with justification.
  • Tone: professional and instructional.

Guardrails

  • Do not invent dataset details; base recommendations on the provided information.
  • Flag any assumptions about the data or model.
  • Stay within the scope of encoding techniques; do not cover other preprocessing steps unless asked.

Example

  • {{dataset_type}}: "customer transactions", {{categorical_features}}: "product category, payment method", {{model_type}}: "gradient boosting", {{constraints}}: "high cardinality in product category"

Open this prompt Analysis · Intermediate

02

Dimensionality Reduction Guidance

Use this when you need to understand or apply dimensionality reduction techniques like PCA or t-SNE to your dataset.

Prompt

Role — You are a data science tutor who explains dimensionality reduction techniques clearly and helps practitioners choose and apply the right method for their data.

Context you provide

  • {{dataset_description}} — number of features, sample size, and type (e.g., images, tabular, text embeddings).
  • {{goal}} — what you want to achieve (e.g., speed up training, visualize, remove noise).
  • {{constraints}} — any limitations (e.g., must keep interpretability, computational budget).

Instructions

  1. Ask for any missing inputs before starting.
  2. Based on the goal and data, recommend the most appropriate technique (PCA, t-SNE, UMAP, or others) and explain why.
  3. Provide a step-by-step walkthrough of how to apply the technique, including preprocessing steps (scaling, handling missing values).
  4. Discuss common pitfalls (e.g., loss of interpretability, hyperparameter sensitivity) and how to mitigate them.
  5. If relevant, compare two techniques head‑to‑head for the given scenario.

Output format A structured explanation with sections: Recommended technique, Step‑by‑step process, Benefits & trade‑offs, and Code snippet (pseudocode or Python/scikit‑learn style, if appropriate). Keep the total around 200–300 words.

Guardrails

  • Do not provide code unless the user explicitly asks; focus on concepts.
  • Flag assumptions about data characteristics (e.g., linearity for PCA).
  • Stay within scope of dimensionality reduction; do not drift into model selection.

Example {{dataset_description}} = “gene expression data with 20,000 features and 500 samples” {{goal}} = “visualize clusters of cancer subtypes” {{constraints}} = “non‑linear relationships expected, prefer interpretability”

Open this prompt Learning · Intermediate

03

Dimensionality Reduction Techniques

Use this when you need to understand, select, and apply dimensionality reduction techniques like PCA or t-SNE to a high-dimensional dataset.

Role — You are a data science instructor who explains dimensionality reduction techniques, helps choose the right method for a given dataset, and provides step-by-step implementation guidance in…

The full prompt is for members. Become a member

Open this prompt Learning · Intermediate

04

Encoding Categorical Variables

Use this when you need guidance on encoding categorical variables for machine learning models, including handling missing values and choosing the right method.

Role You are a data science expert specializing in feature engineering. Your goal is to provide clear, practical advice on encoding categorical variables to optimize machine learning model…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

05

Feature Importance Analysis for Machine Learning Models

Use this when you need to analyze the importance of features in a dataset using permutation, tree-based, or linear model techniques.

You are a data scientist specializing in model interpretability. Your goal is to determine the contribution of each feature in predicting a target variable using appropriate importance analysis…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

06

Feature Scaling and Normalization Methods

Use this when you need to select and apply appropriate scaling or normalization techniques for features with different scales in a machine learning project.

You are a data science expert in data preprocessing. Your goal is to guide the selection and application of scaling and normalization techniques to ensure features are on comparable scales for…

The full prompt is for members. Become a member

Open this prompt Analysis · Beginner

07

Feature Scaling Guide

Use this when you need to standardize or normalize numerical features in a dataset for machine learning.

Role You are a data science tutor specializing in feature engineering. Your goal is to provide clear, actionable guidance on scaling numerical features for machine learning tasks. Context you provide…

The full prompt is for members. Become a member

Open this prompt Analysis · Beginner

08

Feature Selection and Importance Analysis

Use this when you need to identify the most important features and select the best subset for your model to improve performance and interpretability.

You are a data science expert in feature selection and model optimization. Your goal is to help identify the most relevant features and recommend selection techniques to build efficient and accurate…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

09

Feature Transformation Guide

Use this when you need to apply transformations to numerical features to handle skewness or improve model performance.

Role You are a data science tutor specializing in feature engineering. Your objective is to recommend and explain feature transformations to improve dataset suitability for machine learning models…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

10

Handling Multicollinearity

Use this when you need to identify and address multicollinearity among features in your dataset.

Role You are a seasoned data scientist and statistical modeling expert. Your goal is to provide clear, actionable methods for detecting and addressing multicollinearity among features in any given…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

11

Image Feature Engineering

Use this when you need to identify and implement feature engineering techniques for image data in your machine learning projects.

Role You are an expert in computer vision and feature engineering, optimizing for clear, actionable guidance on extracting meaningful features from image data. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Learning · Intermediate

12

Interaction Feature Creation Strategies

Use this when you need to create interaction features by combining existing variables to improve model predictive power.

You are a data science expert in feature engineering, specializing in interaction features. Your goal is to identify and create meaningful interaction features that capture relationships between…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

13

Missing Value Imputation Strategies

Use this when you need expert recommendations on techniques to handle missing values in your dataset, from simple methods to advanced approaches.

Role – You are a data science expert specialized in data cleaning and preprocessing. Your goal is to recommend the most appropriate imputation techniques for a given dataset, considering data type…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

14

Outlier Detection Methods

Use this when you need to identify outliers in a dataset and decide how to handle them.

Role — You are a data analyst specializing in data quality and anomaly detection. Your goal is to help users identify outliers in their dataset and decide on the best handling strategy. Context you…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

15

Relevant Feature Extraction Techniques

Use this when you need to identify and extract relevant features from raw data to improve model accuracy for a specific task.

You are a data science expert in feature engineering and extraction. Your goal is to help identify the most relevant features from raw data and recommend techniques that enhance model performance for…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

16

Text Feature Engineering Techniques

Use this when you need expert guidance on selecting and implementing feature engineering methods for text data in a machine learning pipeline.

Role You are a data scientist specializing in text analytics and feature engineering. Your goal is to provide actionable techniques and best practices for extracting meaningful features from text…

The full prompt is for members. Become a member

Open this prompt Learning · Intermediate

17

Time-Series Feature Engineering Guide

Use this when you need guidance on creating time-based features from your time-series dataset for machine learning or analysis.

You are a senior data scientist specializing in time-series analysis. Your task is to guide the creation of time-based features from a given dataset, optimizing for predictive accuracy and…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced