explaingit

greyhatguy007/machine-learning-specialization-coursera

7,385Jupyter NotebookAudience · generalComplexity · 1/5Setup · easy

TLDR

Completed assignment solutions and lab notebooks for Andrew Ng's Machine Learning Specialization on Coursera, covering supervised learning, decision trees, and neural networks across all three courses from 2022.

Mindmap

mindmap
  root((ML Specialization))
    Course 1
      Linear regression
      Logistic regression
      Gradient descent
    Course 2
      Decision trees
      Regularization
      Bias-variance
    Course 3
      Neural networks
      Deep learning
      Practical tips
    Format
      Jupyter Notebooks
      Completed solutions
      Python code
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Compare your own Coursera assignment answers against completed solutions when you are stuck on a specific exercise

USE CASE 2

Review working Python implementations of linear regression, logistic regression, and decision trees

USE CASE 3

Study neural network code alongside Andrew Ng's course explanations for Course 3

Tech stack

PythonJupyter NotebookNumPyscikit-learn

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

This repository holds completed assignments, practice quiz answers, and optional lab notebooks for the Machine Learning Specialization offered by Stanford University and Deeplearning.ai on Coursera. The specialization was created by Andrew Ng, a well-known machine learning researcher and educator. The content here was completed in 2022 and covers the full three-course sequence. The first course focuses on supervised learning, which is the kind of machine learning where a model learns from labeled examples. It walks through predicting continuous values (called regression) and sorting items into categories (called classification), using techniques like linear regression and logistic regression. Labs in this course are written as Jupyter Notebooks, which are interactive documents mixing code, explanations, and charts. The second course covers more advanced training practices, including how to tell whether a model is learning too narrowly from its training data, how to choose settings that control the learning process, and how to build decision trees, which are models that make predictions by asking a series of yes-or-no questions about the input data. The third course introduces neural networks and deep learning, covering how to build multi-layer models, apply them to practical tasks, and understand what is happening inside them. The repository is organized by course and week, with each folder containing the relevant notebook files. This is a solutions repository, meaning it shows completed answers rather than blank starting templates. It is most useful to someone who is already working through the same specialization and wants to compare their approach or get unstuck on a specific exercise. The author also links to a separate companion repository covering the mathematics background for these topics, for those who want a deeper grounding before or alongside the course material.

Copy-paste prompts

Prompt 1
In the Week 2 linear regression lab, walk me through how gradient descent updates the weights step by step
Prompt 2
Explain the decision tree splitting logic in the Course 2 notebook and show how information gain is calculated
Prompt 3
What regularization technique appears in the logistic regression notebook and how does it reduce overfitting?
Prompt 4
Walk me through the neural network forward pass code in Course 3 Week 1 and explain each matrix operation
Prompt 5
How does the Course 2 notebook handle bias-variance tradeoff and what does the learning curve plot show?
Open on GitHub → Explain another repo

← greyhatguy007 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.