Creating an LLM (Large Language Model) evaluation for data science tasks involves designing a structured framework to assess how well the model performs in real-world or simulated data science scenarios. This is especially important if you're using LLMs to assist with coding, analysis, modeling, or interpretation of data.
Here’s a step-by-step guide to help you build such an evaluation:
🔹 1. Define Evaluation Goals
Start by clarifying what you want to measure:
Can the model write correct Python/R code?
Does it understand statistical concepts?
Can it interpret results correctly?
Is it good at debugging or explaining errors?
How well does it follow best practices?
🔹 2. Identify Key Task Categories
Break down data science into core areas and define specific tasks within each:
✅ Common Data Science Tasks:
Category
Example Tasks
Data Cleaning & Preprocessing
Handle missing values, detect outliers, normalize data
Create realistic test cases that mimic actual workflows.
📌 Example: Modeling Task
Prompt: "Using the provided dataset (link or sample data), train a random forest classifier to predict customer churn. Evaluate its performance and explain the feature importances."
Evaluate:
Correctness of code
Accuracy of output/metrics
Interpretability of explanation
🔹 4. Create a Dataset or Use Public Ones
Use real or synthetic datasets that are commonly used in data science: