Skip to content

In-Class ML Competition Guide: Home Credit Default Risk Prediction

Competition Overview

Your task is to create a machine learning model that predicts the probability of default for each loan applicant. The dataset includes client attributes like income, location, and other financial indicators.

Course Credit Requirements

  • Standard Completion: Competition is optional; not participating still grants standard completion.
  • Honors or Outstanding Completion: Participation is required, and you must achieve a high ranking on the leaderboard.

Note: The final assignment (covered later in the session) is mandatory for all completion types.

Getting Started: Step-by-Step

  1. Download the Competition Folder

    • Go to the student drive.
    • Navigate to the 04 Competition folder.
    • Download the entire competition folder (as a zip file).
  2. Unzip and Upload to Google Drive

    • Unzip the file to extract the competition folder.
    • Upload this folder to your Google Drive (place it anywhere, but remember the path).
  3. Open the Jupyter Notebook

    • Inside the competition folder, click the .ipynb file (the baseline model).
    • The notebook contains a fully working baseline model that runs end-to-end.
  4. Set the Path to Your Folder

    • Locate the cell where the path to the competition folder is defined.
    • Change it to match wherever you uploaded the folder in your Google Drive.
    • Tip: Use the Google Colab folder icon to navigate to your folder and click "Copy path".
  5. Run All Cells

    • Execute the notebook from start to finish.
    • After successful execution, an output folder will be created containing submission.csv.
  6. Submit on Omni Campus

    • Go to the competition page.
    • Click "Submit CSV file".
    • Upload your submission.csv and click "Submit".

Strategy for Improving Your Model

Adopt a Hypothesis-Driven Approach

  • Set a hypothesis (e.g., "clients with high annuity-to-income ratios are more likely to default").
  • Test one change at a time: keep everything else fixed, modify only one variable or feature, and observe the impact.
  • Evaluate using cross-validation: a good improvement should show gains across all folds, not just on average.

Two Axes of Improvement

  • More Data (Y-axis): Add new features or engineer new columns. Start here to maximize available information.
    • Example: Create an annuity income ratio feature.
    • Example: Create a credit term feature by dividing credit by annuity.
  • Better Model (X-axis): Increase model capacity.
    1. Try different algorithms (e.g., Random Forest instead of Logistic Regression). For a foundational understanding, see the introduction to linear predictors and stochastic gradient descent.
    2. Perform hyperparameter tuning (covered in session 5).
    3. Apply advanced feature engineering (covered next week).

Recommended Workflow

  1. Start with the baseline notebook.
  2. Use the adding features tutorial to increase data.
  3. Experiment with better models (e.g., from the advanced techniques folder). A complete guide like the complete machine learning course: 60-hour hands-on tutorial with python projects can be a valuable reference.
  4. Apply hyperparameter tuning.
  5. Create new features using domain knowledge (feature engineering).
  6. Repeat the cycle iteratively.

Rules of Thumb

  • Submit a baseline early, don't wait for the perfect model.
  • Iterate fast, test one small change at a time; avoid making five changes simultaneously.
  • Trust cross-validation, not the public leaderboard, the final ranking uses the full test set.
  • Analyze what your model sees, use EDA to understand features rather than blindly feeding everything.
  • Keep all work private, do not make your repository public.
  • External datasets are not allowed.

Important Notes

  • The public leaderboard uses only a subset of the test set; final rankings will be based on the entire test set.
  • A perfect score of 1.0 is likely due to overfitting or rule violations, do not aim for it. A score above 0.75 is already a great achievement.
  • The top 20% of participants will receive honors/outstanding completion (ties will both be accepted).
  • If you aim for honors/outstanding, you will need to submit your full code folder for verification.
  • You may use any ML models (deep learning, ensembles, etc.) but must not use external data.

Available Resources

  • Competition tutorial PDF, contains all steps shown in the video.
  • Adding features notebook, tutorial on increasing data columns.
  • Feature engineering (secondary) notebook, tutorial on creating new features from existing ones. For a broader perspective, review the end-to-end ML pipeline: house price prediction with MLOps & design patterns.
  • Advanced techniques folder, hints on next steps for model improvement.

Watch the recording (released tomorrow) if you need to review any steps.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

32K+ people have turned 65K+ videos into notes

“Very useful tool. I'm using it for the last couple weeks and I'm loving it so far. Makes learning on YouTube a great experience.”
Bhai Chrome Web Store review

This summary and transcript were automatically generated using AI with the Free YouTube transcript summary tool by LunaNotes.

Related summaries

Complete Machine Learning Course: 60-Hour Hands-On Tutorial with Python Projects

Complete Machine Learning Course: 60-Hour Hands-On Tutorial with Python Projects

This comprehensive 60-hour machine learning course covers conceptual topics and hands-on Python implementation across five parts, featuring use cases like rock vs. mine prediction, diabetes detection, and spam email classification. The first module focuses on machine learning fundamentals, Python basics, essential libraries (NumPy, Pandas, Matplotlib, Seaborn), and data preprocessing techniques including handling missing values, standardization, label encoding, and imbalanced datasets.

End-to-End ML Pipeline: House Price Prediction with MLOps & Design Patterns

End-to-End ML Pipeline: House Price Prediction with MLOps & Design Patterns

This course teaches you to build an end-to-end house price prediction system using MLOps principles, going beyond basic model training. You'll learn core ML concepts like deep data analysis and assumption testing, while implementing MLOps with tools like ZenML and MLflow for experiment tracking, CICD, and deployment, all with scalable, readable code using design patterns.

Comprehensive Bank Loan Data Analyst Portfolio Project Tutorial

Comprehensive Bank Loan Data Analyst Portfolio Project Tutorial

Explore a detailed bank loan report project in the financial domain, covering data import from MSSQL Server, SQL query validation, and advanced Power BI dashboard creation with dynamic KPIs and interactive filters. Learn step-by-step how to build, validate, and visualize key business insights for real-time banking analytics and data analyst portfolio enhancement.

Introduction to Linear Predictors and Stochastic Gradient Descent

Introduction to Linear Predictors and Stochastic Gradient Descent

This lecture covers the fundamentals of linear predictors in machine learning, including feature extraction, weight vectors, and loss functions for classification and regression. It also explains optimization techniques like gradient descent and stochastic gradient descent, highlighting their practical implementation and differences.

Comprehensive Introduction to AI: History, Models, and Optimization Techniques

Comprehensive Introduction to AI: History, Models, and Optimization Techniques

This lecture provides a detailed overview of Artificial Intelligence, covering its historical evolution, core paradigms like modeling, inference, and learning, and foundational optimization methods such as dynamic programming and gradient descent. It also discusses AI's societal impacts, challenges, and course logistics for Stanford's CS221.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes