<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o" -->

---
title: Implemented GMM, GBM & MLP from scratch. | daily.dev
description: A developer shares personal implementations of Gaussian Mixture Models (GMM), Gradient Boosting Machines (GBM), and Multi-Layer Perceptrons (MLP) built from...
canonical: https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Implemented GMM, GBM & MLP from scratch. | daily.dev
og:description: A developer shares personal implementations of Gaussian Mixture Models (GMM), Gradient Boosting Machines (GBM), and Multi-Layer Perceptrons (MLP) built from...
og:url: https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o
og:image: https://api.daily.dev/og/posts/WHoG5kC3o.png
og:image:alt: Implemented GMM, GBM & MLP from scratch.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Implemented GMM, GBM & MLP from scratch.

**[ML & AI](https://daily.dev/sources/ml_ai)** · [@mahirmalik](https://daily.dev/mahirmalik) · 1 min read · 0 upvotes · 0 comments

## Summary

A developer shares personal implementations of Gaussian Mixture Models (GMM), Gradient Boosting Machines (GBM), and Multi-Layer Perceptrons (MLP) built from scratch, without relying on library calls like fit(). The author reflects on lessons learned: soft clustering in GMM handles messy data better than hard boundaries, gradient boosting works by having trees correct each other's errors, and implementing backpropagation manually in NumPy clarifies how neural networks actually learn. Code and further paper-based implementations are hosted on a personal website and GitHub repo, with plans to continue once deep learning basics are covered.

## Content

![Screenshot 2026-07-10 223552.png](https://media.daily.dev/image/upload/s--41H9QqtB--/f_auto/v1783772097/ugc/content_238060e3-e356-4098-b967-3a04daf8a6cb?_a=BAMAMicg0)

![Screenshot 2026-07-10 223629.png](https://media.daily.dev/image/upload/s--ZSlg8PcR--/f_auto/v1783772104/ugc/content_ffd2352d-75fd-4e2e-9263-138db5d48bfa?_a=BAMAMicg0)

![Screenshot 2026-07-10 223655.png](https://media.daily.dev/image/upload/s--K8G1gNN---/f_auto/v1783772113/ugc/content_dd7ad918-6578-4cd0-965a-a0b88cc87f19?_a=BAMAMicg0)

Implemented GMM, GBM & MLP from scratch.

GMM showed me soft clustering beats hard boundaries for messy data. Gradient boosting is just trees fixing each other's mistakes, and writing backprop in NumPy? pure clarity.

Stop calling fit(). Build it.

I have hosted a separate website for the implementations, and I will add more paper-based implementations once I'm done with DL basics.

Here's the site: [http://papers.mahirmalik.in](http://papers.mahirmalik.in)

Also, the GitHub repo: [https://github.com/mahirmlk/papers-implementations.git](https://github.com/mahirmlk/papers-implementations.git)

## Similar posts on daily.dev

- [Getting Back to Basics](https://daily.dev/posts/getting-back-to-basics-8dse6eor7) · Simple Thread · 75 upvotes · 2 comments
- [Notebook drop - Available only for 48-hours\!](https://daily.dev/posts/notebook-drop---available-only-for-48-hours--efot6xlo9) · Machine Learning Pills · 0 upvotes · 0 comments
- [My first experiment with gradient boosting](https://daily.dev/posts/my-first-experiment-with-gradient-boosting-tjnxetq3w) · Medium · 0 upvotes · 0 comments
- [Building Smart Machine Learning in Low-Resource Settings](https://daily.dev/posts/building-smart-machine-learning-in-low-resource-settings-c2lqa3ih7) · Machine Learning Mastery · 0 upvotes · 0 comments

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning), [#python](https://daily.dev/tags/python), [#neural-networks](https://daily.dev/tags/neural-networks), [#numpy](https://daily.dev/tags/numpy)

[View this post on daily.dev](https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o","headline":"Implemented GMM, GBM \u0026 MLP from scratch.","text":"A developer shares personal implementations of Gaussian Mixture Models (GMM), Gradient Boosting Machines (GBM), and Multi-Layer Perceptrons (MLP) built from scratch, without relying on library calls like fit(). The author reflects on lessons learned: soft clustering in GMM handles messy data better than hard boundaries, gradient boosting works by having trees correct each other's errors, and implementing backpropagation manually in NumPy clarifies how neural networks actually learn. Code and further paper-based implementations are hosted on a personal website and GitHub repo, with plans to continue once deep learning basics are covered.","url":"https://daily.dev/posts/implemented-gmm-gbm-mlp-from-scratch--whog5kc3o","datePublished":"2026-08-28T20:46:30.125Z","dateModified":"2026-08-28T20:46:46.607Z","author":{"@type":"Person","name":"Mahir Malik","url":"https://daily.dev/mahirmalik","image":"https://media.daily.dev/image/upload/s--TumZ_0G---/f_auto/v1782736645/avatars/avatar_60gac6pvLv3Aiya3CXdEk?_a=BAMAMicg0","description":"MLE","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":20}},"image":"https://media.daily.dev/image/upload/s--XEwYwjkH--/f_auto/v1783772127/posts/HOErGfrzL?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/ml_ai","name":"ML \u0026 AI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ML \u0026 AI","item":"https://daily.dev/squads/ml_ai"},{"@type":"ListItem","position":3,"name":"Implemented GMM, GBM \u0026 MLP from scratch."}]}
```

