Completed
Build a Python ML Pipeline with Housing Data and Docker
This challenge has ended. You can still review the details below.
Explore the latest challenge for this roleCreate a complete machine learning pipeline in Python that trains a regression model on California housing data, validates it with pytest, and packages it in a Docker container. You will demonstrate Version Control, Programming Fundamentals, Python Programming, Debugging & Troubleshooting, AI Assisted Software Development, Machine Learning Fundamentals, LLM Fundamentals, Prompt Engineering, AI Application Development, and Containerization (Docker). After you submit, an automated AI system reviews your repository when the challenge window closes, then you complete a mandatory in-app conversation to explain your pipeline design and verify your understanding.
AI Engineer
Solo only.
Share this challenge

The Challenge Brief
Problem definition
You are building a machine learning service for a real estate startup that needs to predict house prices. Input data (download): https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/housing/housing.csv. The dataset contains columns such as longitude, latitude, median_income, median_house_value, population, and housing_median_age. Your task is to write a Python 3 application that loads this CSV, preprocesses the data (handle missing values, normalize numerical features, encode categorical features), trains a linear regression or random forest regressor, evaluates it with standard metrics (mean squared error, R-squared, mean absolute error), and packages the entire pipeline in a Docker container for reproducible deployment. The pipeline must include unit tests using pytest to verify data loading, preprocessing, and model prediction logic. You will use git for version control, manage dependencies with pip and a requirements.txt file, and debug any issues that arise during development. Out of scope: web UI, API endpoints, hyperparameter tuning beyond basic defaults, and production monitoring. Every line under Success criteria is in scope for this challenge. Build the core scope in Task brief. Topic coverage uses repository evidence where available and the comprehension conversation; it does not require a separate feature for every topic.
Task brief
Build a Python 3 machine learning pipeline that ingests the California housing CSV, preprocesses features, trains a regression model, and validates predictions with pytest. Package the entire application in a Docker container using a Dockerfile. Demonstrate Version Control by committing regularly to git, manage dependencies with requirements.txt, debug and fix issues systematically, use AI tools to accelerate development, apply machine learning fundamentals to feature engineering and model selection, understand LLM capabilities and limitations, write effective prompts to AI assistants, build an AI-assisted application workflow, and ensure the container runs end-to-end without manual setup.
Version Control
Version Control enables the AI engineer to track code changes, collaborate safely, and maintain a reproducible history of the machine learning pipeline development. You will initialize a git repository, commit preprocessing logic and model training code incrementally, create branches for experimental features (e.g., alternative regressors), merge changes back to main, resolve conflicts if they arise, and use pull requests to document and review key pipeline milestones before deployment.
Programming Fundamentals
Programming Fundamentals underpins the entire ML pipeline: you will write Python 3 code to load CSV data, preprocess it using variables and collections, apply control flow logic for conditional transformations, define reusable functions for model training and evaluation, handle exceptions during file I/O and data validation, and use operators and expressions to compute metrics. This skill ensures your application is readable, maintainable, and correct from the ground up.
Python Programming
Python Programming enables you to build the reproducible machine learning pipeline for the real estate startup. You will write Python 3 code to load the housing dataset, preprocess features, train a regression model, evaluate performance metrics, and package the application in Docker with pytest-based unit tests. This skill covers syntax, functions, modules, virtual environments, object-oriented design, data structures, control flow, error handling, and class organization needed to deliver a maintainable, testable ML service.
Debugging & Troubleshooting
Debugging & Troubleshooting focuses on identifying and resolving errors that arise during development of the housing price prediction pipeline. You will use logging, breakpoints, stack traces, and root cause analysis to diagnose issues in data loading, preprocessing, model training, and test execution, ensuring the containerized application runs reliably.
Ai Assisted Software Development
AI Assisted Software Development applies AI tools to accelerate the real estate price prediction pipeline: from initial code generation and debugging through refactoring, testing, and documentation. You will use AI assistants to help write the Python application, validate their outputs, identify and fix errors, and ensure the final containerized solution meets quality standards while understanding AI limitations and responsible usage.
Machine Learning Fundamentals
Machine Learning Fundamentals teaches you to build, train, and evaluate predictive models using supervised learning on the real estate housing dataset. You will preprocess features, train a regression model, measure performance with standard metrics, and validate your pipeline with unit tests—all within the containerized Python application scope.
LLM Fundamentals
LLM Fundamentals teaches the core concepts underlying large language models so you can understand how tokenization, embeddings, transformers, and context windows work together in modern NLP systems. While your real estate price prediction pipeline uses scikit-learn regression rather than LLMs, this skill provides essential background for AI engineers who will later integrate language models into production systems. You will study these concepts through reading, code inspection, and reasoning exercises; no LLM implementation is required for this housing prediction project.
Prompt Engineering
Prompt Engineering teaches you to structure and refine requests to language models effectively, a critical skill for AI engineers building ML services. In this real estate price prediction project, you will use prompt engineering to document your data pipeline logic, generate test case descriptions, and iteratively refine prompts to an LLM when debugging model behavior or explaining preprocessing decisions to your team. This skill ensures clear communication with AI tools and helps you recognize when an LLM response is incomplete or incorrect.
AI Application Development
AI Application Development requires you to integrate LLM APIs, structured outputs, and function calling into the real estate price prediction pipeline to enhance model interpretability and enable dynamic feature engineering. You will use an LLM to generate structured property descriptions from raw data, call external functions to fetch market context, and validate predictions through natural language reasoning. This integration demonstrates how modern AI applications combine traditional ML with LLM capabilities while maintaining the core reproducible, containerized workflow.
Containerization (Docker)
Containerization (Docker) involves packaging the machine learning pipeline—data loading, preprocessing, model training, and evaluation—into a Docker image and running it as a reproducible container so the ops team can execute the entire workflow consistently on any machine. You will write a Dockerfile that specifies the Python 3 environment, installs dependencies from requirements.txt, copies the application code and tests, and defines the entry point to run the pipeline. This skill ensures the prototype transitions from local notebooks to a portable, version-controlled artifact that eliminates environment drift and enables reliable deployment.
Language and stack
Python 3, scikit-learn, pandas, pytest, Docker, pip, git.
Scenario
Your startup has a real estate team that needs a reproducible way to estimate property values on new listings. Currently, the data scientist runs notebooks locally, making it hard for the ops team to rerun the model consistently. You are tasked with converting the prototype into a containerized Python application that the ops team can run on any machine with Docker installed. The deadline is tight: you have one day to deliver a working pipeline with tests and a Dockerfile so the team can deploy it by end of week.
Deliverables
- A Python package with modules for data loading, preprocessing, model training, and prediction; unit tests using pytest covering at least data loading and prediction logic.
- A Dockerfile that builds and runs the pipeline in an isolated container; a requirements.txt file listing all dependencies.
- A git repository with clear commit history showing iterative development, debugging steps, and final working code.
Success criteria
These are repository evidence checks within the core scope, not additional feature requests. One implementation or test may provide evidence for several topics. Missing implementation evidence remains unverified; explanations alone do not demonstrate implementation proficiency.
Version Control
- Repository Setup (beginner): Git repository initialized in the project root with a .gitignore file excluding pycache, .pytest_cache, *.pyc, and venv or similar.
- Basic Commands (beginner): At least three commits present in the repository history, each with a clear message describing a logical unit of work (e.g., data loading, preprocessing, model training, or test setup).
- Commits (beginner): Commit messages are present and describe the change; inspect git log output to confirm each commit corresponds to a functional addition or fix within the core pipeline.
- Branching (beginner): At least one branch other than main exists in the repository, created and checked out using standard git commands; assess only if branch is present in the repository.
- Merging (beginner): If multiple branches exist, evidence of a merge back to main is present in git log (merge commit or fast-forward); assess only if branching was used.
- Conflict Resolution (intermediate): If a merge conflict occurred during development, the conflict markers were resolved, the resolution was committed, and the final code is syntactically correct and runs; assess only if a conflict is evident in the repository history.
- Pull Requests (intermediate): If the repository is hosted on a platform supporting pull requests (GitHub, GitLab, etc.), at least one pull request exists with a description linking to a core feature (data loading, preprocessing, model training, or testing) and evidence of review or discussion before merge; assess only if pull request infrastructure is present.
Programming Fundamentals
- Variables & Data Types (beginner): Repository contains Python code that declares and uses variables (e.g., dataframe, model, predictions) with appropriate types (int, float, str, list, dict) for housing data and model outputs; inspect type consistency in data loading and preprocessing modules.
- Operators (beginner): Code uses arithmetic operators (+, -, *, /) for feature normalization or metric calculation, comparison operators (==, !=, <, >) in conditional logic, and logical operators (and, or) in data validation; verify in preprocessing or test assertions.
- Expressions (beginner): Code contains expressions that combine variables and operators (e.g., (value - mean) / std for normalization, mse = mean((y_true - y_pred) ** 2)) to compute derived values; inspect in preprocessing or evaluation functions.
- Control Flow (beginner): Code includes if/elif/else blocks for handling missing values or branching model selection, and for/while loops for iterating over data batches or feature lists; verify in data loading and preprocessing logic.
- Functions & Methods (beginner): Code defines at least three reusable functions (e.g., load_data(), preprocess_features(), evaluate_model()) with clear inputs and outputs; inspect function signatures and calls in main pipeline.
- Collections (intermediate): Code uses lists, dictionaries, or pandas Series/DataFrames to store housing features, predictions, and metrics; verify correct indexing, iteration, and aggregation (e.g., mean, sum) in preprocessing and evaluation.
- Exception Handling (intermediate): Code includes try/except blocks to catch and handle FileNotFoundError (missing CSV), ValueError (invalid data), or other exceptions during loading or preprocessing; verify exception types and recovery logic.
- File Handling (beginner): Code opens and reads the housing CSV file using open() or pandas.read_csv(), processes it, and writes outputs (e.g., model predictions, test results); inspect file paths and I/O operations in the codebase.
Python Programming
- Python Syntax (beginner): Repository contains valid Python 3 code in main script (e.g., main.py or pipeline.py) and test files (test_*.py) that runs without syntax errors; verify correct indentation, variable declarations, and statement structure by executing the application.
- Functions (beginner): Code includes at least two user-defined functions (e.g., load_data, preprocess_features, train_model, evaluate_model) that accept parameters and return values; verify function calls in main pipeline or test files.
- Modules & Packages (beginner): Code imports external packages (pandas, scikit-learn, numpy) and organizes internal code into separate modules (e.g., data.py, model.py, utils.py); inspect import statements and file structure.
- Virtual Environments (beginner): Repository includes a requirements.txt file listing all dependencies (pandas, scikit-learn, numpy, pytest, etc.); verify file exists and pip install -r requirements.txt succeeds.
- Object-Oriented Python (intermediate): Code defines at least one class (e.g., HousingPipeline, DataPreprocessor, ModelEvaluator) with methods and state; verify class instantiation and method calls in main script or tests.
- Data Structures (intermediate): Code uses appropriate data structures (lists, dictionaries, pandas DataFrames, numpy arrays) to store and manipulate housing data, feature matrices, and model outputs; inspect variable assignments and data transformations in preprocessing and model evaluation.
- Control Flow (intermediate): Code includes conditional logic (if/elif/else) for handling missing values or feature encoding decisions, and loops (for/while) for iterating over data batches or evaluation metrics; trace execution paths in preprocessing and evaluation functions.
- Functions and Classes (intermediate): User-defined functions and class methods demonstrate parameter passing, return values, and proper scope; verify that functions accept inputs (e.g., raw DataFrame) and return processed outputs (e.g., normalized features), and that class methods operate on instance state.
- Object Oriented Programming Basics (beginner): Code demonstrates basic OOP principles: encapsulation (private/public attributes), method definitions within classes, and object instantiation; inspect class definitions and method calls.
- Error Handling (intermediate): Code includes try-except blocks or conditional checks to handle missing data, invalid inputs, or model training failures; verify error handling in data loading, preprocessing, or model prediction functions.
Debugging & Troubleshooting
- Breakpoints (beginner): Inspect the learner repo for evidence of debugger breakpoints or conditional logging statements used to pause execution and inspect variable state during data loading or model training; assess only if present in code.
- Debugging Techniques (beginner): Verify that the learner repo contains at least one deliberate fix applied to resolve a runtime error (e.g., handling missing values, type conversion, or import failure) with a commit message or code comment explaining the issue and solution.
- Logging (beginner): Confirm that the application includes logging statements (using Python logging module or print statements with context) at key pipeline stages (data load, preprocessing, model training, evaluation) to trace execution flow.
- Stack Traces (intermediate): Verify that pytest test output or application error logs in the repo capture and display full stack traces; inspect one example trace to confirm it identifies the error location, function call chain, and root cause context.
- Root Cause Analysis (intermediate): Review commit history or code comments to confirm the learner identified why at least one error occurred (e.g., missing dependency, incorrect data type, logic flaw) and applied a targeted fix rather than a workaround.
Ai Assisted Software Development
- Working with AI Assistants (beginner): Repository contains evidence of AI tool usage in commits or code comments (e.g., generated function stubs, AI-assisted debugging notes, or tool attribution).
- Prompt Writing Fundamentals (beginner): At least one commit message or inline comment demonstrates a clear, specific prompt used to generate or fix code (e.g., "Prompted AI to generate preprocessing function for missing values").
- Code Generation (beginner): Core pipeline functions (data loading, preprocessing, model training, evaluation) are present and functional; if AI-generated, they execute without syntax errors and pass basic pytest runs.
- AI-assisted Debugging (beginner): Repository shows evidence of a bug fix or error resolution (commit message, test correction, or code change) with reasoning about how AI assistance identified or resolved the issue.
- AI-assisted Refactoring (intermediate): At least one refactored code section (e.g., consolidated preprocessing logic, improved function modularity, or reduced duplication) is present with a commit explaining the improvement and how AI assisted the change.
- AI-assisted Unit Testing (intermediate): pytest test file exists with at least 3 passing tests covering data loading, preprocessing, and model prediction; commit history or comments show AI assistance in test generation or refinement.
- AI-assisted Documentation (beginner): README or docstrings in key functions include AI-assisted content (e.g., usage examples, parameter descriptions, or pipeline overview) with attribution or evidence of AI input.
- AI Output Validation (intermediate): Code includes at least one validation check (e.g., assertion on data shape, metric sanity check, or type validation) with a commit or comment explaining why the check was added to catch AI-generated errors.
- AI Limitations & Hallucinations (beginner): At least one commit message or code comment acknowledges a limitation or error in AI output (e.g., "AI suggested incorrect library; corrected to use scikit-learn").
- Responsible AI Usage (beginner): Commit history or README includes a note on responsible usage (e.g., data privacy consideration, bias awareness in model evaluation, or ethical use of predictions).
Machine Learning Fundamentals
- Supervised Learning (intermediate): Repository contains working code that loads housing.csv, trains a linear regression or random forest regressor on numerical and encoded categorical features, and generates predictions on held-out test data.
- Unsupervised Learning (beginner): Assess only if present; no unsupervised method is required by core scope.
- Model Training (intermediate): Training script successfully fits the regressor to preprocessed training data; pytest test verifies that model.fit() executes without error and produces a trained model object with non-zero coefficients or feature importances.
- Model Evaluation (intermediate): Code computes and logs mean squared error, R-squared, and mean absolute error on test data; pytest test confirms evaluation metrics are numeric and within expected ranges (e.g., R-squared between -1 and 1).
- Overfitting & Underfitting (intermediate): Training and test metrics are both logged in the pipeline output; if present in repository, evidence shows learner compared train vs. test performance to detect divergence.
- Feature Engineering (beginner): Preprocessing code handles missing values (e.g., imputation), normalizes numerical features (e.g., StandardScaler), and encodes categorical features (e.g., one-hot encoding); pytest test confirms preprocessed data has correct shape and no NaN values.
LLM Fundamentals
- Transformer Basics (beginner): No implementation evidence required; this is a conceptual topic.
- Embeddings (beginner): If numerical feature normalization or vectorization code exists in preprocessing, verify that the learner can explain how feature vectors represent input data; assess only if present.
- Tokenization (beginner): If the learner repo includes any text preprocessing or feature engineering code, inspect whether string splitting or token-like operations are present and correctly documented; assess only if present in the codebase.
- Context Window (beginner): No implementation evidence required; this is a conceptual topic.
Prompt Engineering
- Prompt Structure (beginner): Repository contains at least one documented prompt (in a comment, docstring, or separate text file) that clearly specifies a task, context, and expected output format when requesting an LLM to help with pipeline logic, test generation, or debugging.
- Zero-shot Prompting (beginner): Evidence of a direct prompt to an LLM (documented in commit message, code comment, or separate artifact) asking for a specific output without examples, such as requesting a pytest test case or explaining a preprocessing step.
- Few-shot Prompting (beginner): Evidence of a prompt that includes one or more worked examples (e.g., sample input-output pairs or code snippets) when asking an LLM to generate similar code or test logic for the housing pipeline.
- Prompt Iteration (beginner): Git history or code comments show at least one instance of refining a prompt based on an unsatisfactory LLM response, such as clarifying requirements or adjusting the format request.
- LLM Limitations (beginner): Code comments or documentation acknowledge at least one limitation of LLM-generated output (e.g., hallucinated function names, incorrect logic, or missing edge cases) and describe how the learner verified or corrected it.
AI Application Development
- LLM APIs (intermediate): Repository contains code that calls an LLM API (e.g., OpenAI, Anthropic, or local model via ollama) to process or enrich housing data; evidence is a working function in the pipeline that sends data to the LLM and parses the response, with a passing test that mocks or stubs the API call.
- Structured Outputs (intermediate): Code demonstrates use of LLM structured output or JSON schema enforcement (e.g., response_format in OpenAI, pydantic models, or tool schemas) to extract consistent fields from LLM responses; a test verifies that the parsed output matches the expected schema.
- Function Calling (intermediate): Pipeline includes at least one LLM function call definition (tool/action) that the model can invoke; evidence is a working example where the LLM selects and calls a function (e.g., fetch_market_data or compute_feature) and the result is used in the prediction workflow; a test confirms the function is called and its output is integrated.
- RAG Fundamentals (beginner): If vector database or retrieval is present in the repo, verify that the pipeline retrieves relevant context (e.g., similar properties or market reports) and passes it to the LLM; a test confirms retrieval returns non-empty results and they are used in the model. Assess only if present; not required for core scope.
- Vector Databases (beginner): If a vector store is implemented, confirm that property embeddings or feature vectors are stored and retrieved to augment predictions; a test verifies embedding creation and retrieval logic. Assess only if present; not required for core scope.
Containerization (Docker)
- What is Containerization (beginner): Dockerfile present in repository root that packages the Python application, dependencies, and entry point; container builds without errors and runs the pipeline end-to-end.
- Docker Architecture (beginner): Dockerfile uses a base image (e.g., python:3.9-slim) and follows layering best practices (dependencies before code); image builds successfully and container executes the training and evaluation logic.
- Docker Images (beginner): docker build command in repository documentation or CI logs shows successful image creation with a tagged name; image size is reasonable (under 1 GB) and contains all required dependencies.
- Docker Containers (beginner): Container runs the pipeline script or pytest tests without manual intervention; stdout/stderr logs show data loading, preprocessing, model training, and evaluation metrics.
- Dockerfile Basics (beginner): Dockerfile includes FROM, COPY, RUN (for pip install), and CMD or ENTRYPOINT directives; syntax is valid and image builds without warnings.
- Building Images (beginner): docker build command executes successfully; image is tagged and appears in docker images output; build logs show dependency installation and code copying.
- Running Containers (implementation): docker run command executes the container; pipeline completes with model evaluation metrics (MSE, R-squared, MAE) printed to stdout or saved to output file; container exits with status 0 on success.
- Environment Variables (beginner): Dockerfile or docker run command uses ENV or -e flags to pass configuration (e.g., data path, model output directory); container respects these variables during execution.
- Docker Volumes (beginner): Dockerfile or documentation references volume mount points (e.g., /data, /models); if present in run logs or compose file, volumes are mounted and data persists or is accessible after container exit.
- Docker Networks (beginner): If docker-compose.yml is present, networks are defined; if single container, network configuration is not required for core scope—assess only if present.
- Docker Compose (intermediate): If docker-compose.yml exists, it defines the service with image, volumes, environment variables, and command; docker-compose up runs the pipeline successfully.
- Container Debugging (intermediate): If container fails, learner demonstrates debugging via docker logs, docker exec, or docker inspect; error messages are captured and root cause (missing dependency, incorrect path, etc.) is identified and fixed in Dockerfile or code.
What to explain
AI assistance is allowed while building the submission. During the comprehension conversation, answer independently without AI tools, search, or outside help. Be ready to trace your actual code, explain decisions and limitations, and reason about a small change or failure case. Conceptual topics do not require a separate coded feature.
Version Control
- Repository Setup (beginner): Explain why a .gitignore file is necessary and what files or directories should be excluded from version control in a Python machine learning project.
- Basic Commands (beginner): Describe the workflow you used to stage, commit, and view the history of your changes; explain what information each commit message should convey.
- Commits (beginner): Walk through one of your commits and explain what change it introduced and why it was a logical stopping point for a single commit.
- Branching (beginner): Describe the purpose of the branch you created; explain when and why you would create a new branch instead of committing directly to main.
- Merging (beginner): Explain the difference between a fast-forward merge and a three-way merge, and describe which type occurred in your repository.
- Conflict Resolution (intermediate): If a conflict occurred, explain what caused it, how you identified the conflicting lines, and how you decided which version to keep; if no conflict occurred, describe a scenario in which one might arise when two branches modify the same file.
- Pull Requests (intermediate): Explain the purpose of a pull request in a team setting; describe what information your pull request contained and how it helped communicate the change to reviewers.
Programming Fundamentals
- Variables & Data Types (beginner): Explain why you chose specific data types (e.g., float for house prices, list for feature names) and how type mismatches could break the pipeline.
- Operators (beginner): Describe how you used arithmetic and comparison operators in normalization or metric calculation; predict the effect of changing an operator (e.g., + to -).
- Expressions (beginner): Walk through a complex expression in your code (e.g., the MSE formula or feature scaling); explain each component and its role.
- Control Flow (beginner): Justify your choice of if/elif/else or loop structure for handling missing values or iterating features; explain what would happen if a condition were removed.
- Functions & Methods (beginner): Explain the purpose of each function you defined, its parameters, and return value; describe how breaking one function into smaller functions would improve readability.
- Collections (intermediate): Explain why you chose lists, dicts, or DataFrames for storing housing data and predictions; describe how you iterate over or aggregate values in your collections.
- Exception Handling (intermediate): Identify the exceptions your code catches and explain why each one matters; describe what happens if an exception is not caught.
- File Handling (beginner): Explain how your code opens, reads, and processes the CSV file; describe what would happen if the file path were incorrect or the file were missing.
Python Programming
- Python Syntax (beginner): Explain why correct indentation and statement structure are critical in Python; describe how a syntax error would prevent the pipeline from running.
- Functions (beginner): Describe the purpose of each user-defined function in the pipeline (e.g., load_data loads the CSV and returns a DataFrame); explain how function parameters and return values enable code reuse and modularity.
- Modules & Packages (beginner): Explain why organizing code into separate modules (data.py, model.py) improves maintainability; describe what pandas, scikit-learn, and numpy provide and why they are necessary for this ML task.
- Virtual Environments (beginner): Explain why a requirements.txt file is essential for reproducibility; describe how it ensures the ops team can install the same dependency versions when deploying the Docker container.
- Object-Oriented Python (intermediate): Describe the design of at least one class in the pipeline (e.g., what state it holds, what methods it provides); explain how encapsulation and method organization improve code clarity and testability.
- Data Structures (intermediate): Explain why pandas DataFrames are chosen for storing housing data and why numpy arrays are used for feature matrices; describe how dictionaries or lists might be used to store preprocessing metadata or evaluation results.
- Control Flow (intermediate): Trace through a conditional branch in the preprocessing logic (e.g., how missing values are handled) or a loop in evaluation (e.g., iterating over metrics); explain the decision logic and how it affects the pipeline output.
- Functions and Classes (intermediate): Explain how a function or method signature (parameters and return type) communicates its contract; describe a scenario where incorrect parameter passing or scope would cause a bug in the pipeline.
- Object Oriented Programming Basics (beginner): Explain the difference between a class definition and an instance; describe how instance methods access and modify object state (e.g., a model object storing trained coefficients).
- Error Handling (intermediate): Describe a potential error in the pipeline (e.g., missing values in the dataset, invalid model input) and explain how a try-except block or validation check would prevent the application from crashing.
Debugging & Troubleshooting
- Breakpoints (beginner): Explain when and why you would use a debugger breakpoint versus logging to diagnose a data preprocessing bug; describe what variable state you would inspect at a breakpoint in the model training loop.
- Debugging Techniques (beginner): Describe one error you encountered during development, the steps you took to isolate it, and how you verified the fix resolved the issue without introducing new problems.
- Logging (beginner): Explain what information you logged at each pipeline stage and how those logs helped you understand the flow of data or identify where an error occurred.
- Stack Traces (intermediate): Analyze a stack trace from a failed test or application run; explain what the trace reveals about the error location, the sequence of function calls that led to it, and how you used that information to find the root cause.
- Root Cause Analysis (intermediate): Describe a bug you debugged in the pipeline; explain the difference between the symptom (what went wrong) and the root cause (why it went wrong), and how you confirmed your fix addressed the root cause rather than masking it.
Ai Assisted Software Development
- Working with AI Assistants (beginner): Explain which AI tool(s) you used and for which tasks in the pipeline (code generation, debugging, testing, or documentation).
- Prompt Writing Fundamentals (beginner): Describe one prompt you wrote to an AI assistant and how you refined it to get better results; what made the prompt effective or ineffective?
- Code Generation (beginner): Review one AI-generated function in your pipeline (e.g., preprocessing or model training). Does it correctly handle the input data and produce expected output? What, if anything, did you have to fix?
- AI-assisted Debugging (beginner): Walk through one error you encountered during development. How did you use an AI assistant to identify or resolve it? Did the AI suggestion work immediately or require adjustment?
- AI-assisted Refactoring (intermediate): Show one section of code you refactored with AI assistance. Explain the original problem (duplication, clarity, modularity) and how the refactored version improves it. Did the AI suggestion match your intent?
- AI-assisted Unit Testing (intermediate): Review your pytest tests. Which tests were AI-generated or AI-assisted? Do they correctly validate the pipeline logic, or did you need to modify them? Explain any gaps or false positives.
- AI-assisted Documentation (beginner): Point to one docstring or README section created or improved with AI assistance. Is it accurate and helpful for someone running the pipeline?
- AI Output Validation (intermediate): Describe one validation check you added to catch errors in AI-generated code or model output. Why is this check important, and what would happen without it?
- AI Limitations & Hallucinations (beginner): Give an example of an AI suggestion that was incorrect, incomplete, or misleading. How did you detect and correct it?
- Responsible AI Usage (beginner): Discuss one ethical or practical consideration you kept in mind while using AI to build this pipeline (e.g., data privacy, model fairness, or transparency in predictions).
Machine Learning Fundamentals
- Supervised Learning (intermediate): Explain why linear regression or random forest is appropriate for predicting continuous house prices and how the model learns from labeled input-output pairs in the training data.
- Unsupervised Learning (beginner): Explain the difference between supervised and unsupervised learning; describe one unsupervised technique (e.g., clustering or dimensionality reduction) and when it might be useful for exploratory analysis of the housing dataset.
- Model Training (intermediate): Describe what happens during the fit() call: how the model adjusts internal parameters to minimize error on training data, and why train/test split is necessary.
- Model Evaluation (intermediate): Justify the choice of mean squared error, R-squared, and mean absolute error for regression; explain what each metric reveals about model performance and when you would prefer one over another.
- Overfitting & Underfitting (intermediate): Given train and test metrics from your pipeline, explain whether the model is overfitting, underfitting, or well-generalized; propose one concrete change (e.g., regularization, feature reduction, or more training data) to address any imbalance.
- Feature Engineering (beginner): Describe why handling missing values and normalizing features improve model training; explain one preprocessing choice you made (e.g., imputation strategy or scaling method) and its effect on the model.
LLM Fundamentals
- Transformer Basics (beginner): Explain the role of self-attention in transformers and how it differs from recurrent architectures in processing sequences.
- Embeddings (beginner): Describe how embeddings map discrete tokens or features into continuous vector space and why this representation is useful for neural models.
- Tokenization (beginner): Explain how text or sequences are split into tokens and why token boundaries matter for language model input.
- Context Window (beginner): Define context window, describe why it limits how much prior information a model can reference, and give an example of how context length affects prediction accuracy.
Prompt Engineering
- Prompt Structure (beginner): Explain the three key components of an effective prompt (task, context, format) and give one example of how you applied this structure when asking an LLM for help with your housing pipeline.
- Zero-shot Prompting (beginner): Describe a scenario where you asked an LLM a direct question about your preprocessing or model evaluation without providing examples, and explain whether the response was accurate or required correction.
- Few-shot Prompting (beginner): Provide an example of a few-shot prompt you used or would use to generate test cases or code for the pipeline, and explain why including examples improved the LLM output compared to a zero-shot request.
- Prompt Iteration (beginner): Walk through one instance where an LLM response was incomplete or incorrect, describe how you refined your prompt, and explain what changed in the result.
- LLM Limitations (beginner): Identify one limitation you encountered when using an LLM to help with your pipeline (e.g., incorrect library syntax, missing error handling, or hallucinated dataset columns), explain how you detected it, and describe how you corrected it.
AI Application Development
- LLM APIs (intermediate): Explain why you chose your LLM provider and how you handle API rate limits, errors, and latency in the pipeline. Describe one scenario where the LLM call could fail and how your code recovers.
- Structured Outputs (intermediate): Walk through your schema definition and explain how enforcing structure prevents parsing errors. Show how you would modify the schema if the real estate team requested a new field in the LLM output.
- Function Calling (intermediate): Describe the function signature you defined for the LLM to call. Explain how you validated that the LLM correctly invoked it and how you would debug a case where the model chose the wrong function.
- RAG Fundamentals (beginner): If retrieval is implemented, explain how you chose your retrieval strategy (e.g., similarity search, keyword matching) and why it is appropriate for housing data. If not implemented, describe one use case where RAG would improve prediction accuracy.
- Vector Databases (beginner): If a vector store is used, explain how you generated embeddings and why that representation is suitable for real estate features. If not used, describe how you would design embeddings for property similarity search.
Containerization (Docker)
- What is Containerization (beginner): Explain why containerization solves the environment drift problem described in the scenario and how it enables the ops team to run the pipeline consistently.
- Docker Architecture (beginner): Describe the relationship between Docker images and containers; explain how the base image, layers, and entry point work together to create a runnable environment.
- Docker Images (beginner): Explain what a Docker image is, how it differs from a container, and why the Dockerfile is the source of truth for reproducibility.
- Docker Containers (beginner): Describe what happens when docker run executes; explain how the container isolates the Python environment and dependencies from the host machine.
- Dockerfile Basics (beginner): Explain the purpose of FROM, COPY, RUN, and CMD/ENTRYPOINT directives; justify the order of instructions (e.g., why dependencies are installed before code is copied).
- Building Images (beginner): Explain what docker build does, how it reads the Dockerfile, and why tagging the image is important for version control and deployment.
- Running Containers (implementation): Trace the execution of docker run; explain how the container starts, loads data, trains the model, and outputs metrics; identify any errors in the pipeline logic or environment setup.
- Environment Variables (beginner): Explain how environment variables are passed to the container and why they are preferable to hardcoding paths or configuration values in the code.
- Docker Volumes (beginner): Explain the purpose of volumes; describe how mounting a volume allows the container to access host files (e.g., housing.csv) and persist output (e.g., trained model).
- Docker Networks (beginner): Explain Docker networks and when they are needed (e.g., multi-container setups); if not used in the core, explain why a single-container pipeline does not require custom networking.
- Docker Compose (intermediate): Explain how docker-compose.yml simplifies multi-container orchestration; describe the structure of a compose file and how it relates to individual docker run commands.
- Container Debugging (intermediate): Describe debugging techniques (docker logs, docker exec, docker inspect) and explain how to use them to diagnose container failures; provide an example of a common error (e.g., missing dependency) and how to fix it in the Dockerfile.
How to submit
- Before you start, register on SahkaarX and connect your GitHub account via the app.
- When the challenge begins, SahkaarX will create a private GitHub repository under your account and notify you in the app with a clone URL.
- Clone the repository, implement your Python pipeline, write tests, create the Dockerfile, and commit your work regularly using git.
- Push all commits to the private repository and submit your work in the app using the system-created repo link.
What happens after you submit
When the challenge window closes, an automated AI system will review your repository for code quality, test coverage, Docker configuration, and adherence to the skill topics. You will then complete a mandatory in-app conversation where you explain your pipeline design, how you handled data preprocessing, what tests you wrote, and how your Docker setup ensures reproducibility. This conversation verifies your understanding of the work; it is not a quiz. After the conversation, results are finalized automatically.
Intellectual property
You retain full ownership of the code and design in your submission. SahkaarX may host, evaluate, and display your repository on leaderboards and in challenge galleries. Your GitHub repository remains private under your account; only you and SahkaarX evaluators can access it during and after the challenge.
Skills You’ll Put to Work
Version Control
- Repository SetupBeginnerFundamental
- Basic CommandsBeginnerFundamental
- CommitsBeginnerFundamental
- BranchingBeginnerFundamental
- MergingBeginnerFundamental
- Conflict ResolutionIntermediateFundamental
- Pull RequestsIntermediateFundamental
Programming Fundamentals
- Variables & Data TypesBeginnerFundamental
- OperatorsBeginnerFundamental
- ExpressionsBeginnerFundamental
- Control FlowBeginnerFundamental
- Functions & MethodsBeginnerFundamental
- CollectionsIntermediateFundamental
- Exception HandlingIntermediateFundamental
- File HandlingBeginnerFundamental
Python Programming
- Python SyntaxBeginnerFundamental
- FunctionsBeginnerFundamental
- Modules & PackagesBeginnerFundamental
- Virtual EnvironmentsBeginnerFundamental
- Object-Oriented PythonIntermediateFundamental
- Data StructuresIntermediateFundamental
- Control FlowIntermediateFundamental
- Functions and ClassesIntermediateFundamental
- Object Oriented Programming BasicsBeginnerFundamental
- Error HandlingIntermediateFundamental
Debugging & Troubleshooting
- BreakpointsBeginnerFundamental
- Debugging TechniquesBeginnerFundamental
- LoggingBeginnerFundamental
- Stack TracesIntermediateFundamental
- Root Cause AnalysisIntermediateFundamental
Ai Assisted Software Development
- Working with AI AssistantsBeginnerFundamental
- Prompt Writing FundamentalsBeginnerFundamental
- Code GenerationBeginnerFundamental
- AI-assisted DebuggingBeginnerFundamental
- AI-assisted RefactoringIntermediateFundamental
- AI-assisted Unit TestingIntermediateFundamental
- AI-assisted DocumentationBeginnerFundamental
- AI Output ValidationIntermediateFundamental
- AI Limitations & HallucinationsBeginnerFundamental
- Responsible AI UsageBeginnerFundamental
Machine Learning Fundamentals
- Supervised LearningIntermediateFundamental
- Unsupervised LearningBeginnerFundamental
- Model TrainingIntermediateFundamental
- Model EvaluationIntermediateFundamental
- Overfitting & UnderfittingIntermediateFundamental
- Feature EngineeringBeginnerFundamental
LLM Fundamentals
- Transformer BasicsBeginnerFundamental
- EmbeddingsBeginnerFundamental
- TokenizationBeginnerFundamental
- Context WindowBeginnerFundamental
Prompt Engineering
- Prompt StructureBeginnerFundamental
- Zero-shot PromptingBeginnerFundamental
- Few-shot PromptingBeginnerFundamental
- Prompt IterationBeginnerFundamental
- LLM LimitationsBeginnerFundamental
AI Application Development
- LLM APIsIntermediateFundamental
- Structured OutputsIntermediateFundamental
- Function CallingIntermediateFundamental
- RAG FundamentalsBeginnerFundamental
- Vector DatabasesBeginnerFundamental
Containerization (Docker)
- What is ContainerizationBeginnerFundamental
- Docker ArchitectureBeginnerFundamental
- Docker ImagesBeginnerFundamental
- Docker ContainersBeginnerFundamental
- Dockerfile BasicsBeginnerFundamental
- Building ImagesBeginnerFundamental
- Running ContainersBeginnerFundamental
- Environment VariablesBeginnerFundamental
- Docker VolumesBeginnerFundamental
- Docker NetworksBeginnerFundamental
- Docker ComposeIntermediateFundamental
- Container DebuggingIntermediateFundamental
Before You Register
- Prerequisites: review the target audience, skills covered, and challenge brief.
- Deadlines: check the key dates and complete required submissions before the challenge deadline.
- Participation: Solo only.
- Evaluation: review the brief and FAQs for scoring criteria and how your work will be assessed.
- AI assistance: check this challenge's rules before using AI tools. If the rules are unclear, ask support before submitting.
Questions? Contact SahkaarX support.
Intellectual property: participants retain
Frequently Asked Questions
Who can join this challenge?
This is an open, solo challenge for entry-level AI engineers. Teams are not allowed; you must work individually.
Do I need to create my own GitHub repository?
No. When the challenge begins, SahkaarX will create a private GitHub repository under your account and send you the clone URL in the app. Clone that repository and push your work there.
When does evaluation happen?
Evaluation runs automatically when the challenge window closes, not immediately after you submit. An AI system reviews your repository for code quality, tests, and Docker configuration. You then complete a mandatory in-app conversation to explain your work.
What is the mandatory in-app conversation?
After the AI reviews your repository, you will have a conversation in the app where you explain your pipeline design, data preprocessing approach, test strategy, and Docker setup. This verifies you understand your own submission; it is not a quiz or written exam.
Skill feedback helps you decide what to practise next. Learning plans follow eligible evaluated results; additional plans are paid. No job guarantee.