@XAMTO_AI: 机器学习入门最容易被什么坑到? 要么教程全是废话,听完还是懵的;要么上来就甩代码,跑通了也不知道为啥。 GitHub上有个宝藏项目:Machine Learning Visualized,直接把算法训练过程可视化给你看,权重怎么更新、怎么…

X AI KOLs Timeline 工具

摘要

介绍 GitHub 上的 Machine Learning Visualized 项目,该工具通过交互式笔记本和可视化图表展示机器学习算法(如神经网络、逻辑回归等)的训练过程,帮助初学者理解原理。

机器学习入门最容易被什么坑到? 要么教程全是废话,听完还是懵的;要么上来就甩代码,跑通了也不知道为啥。 GitHub上有个宝藏项目:Machine Learning Visualized,直接把算法训练过程可视化给你看,权重怎么更新、怎么收敛,全程摊开没有遮掩。 你能拿到的东西: 神经网络/逻辑回归/感知器完整实现 从第一性原理推导,公式不跳步 交互式笔记本,参数随调随看 覆盖PCA、K-means、梯度下降 支持在线看,也能Docker本地一键部署。 https://github.com/gavinkhung/machine-learning-visualized…
查看原文
查看缓存全文

缓存时间: 2026/06/10 09:48

机器学习入门最容易被什么坑到?

要么教程全是废话,听完还是懵的;要么上来就甩代码,跑通了也不知道为啥。

GitHub上有个宝藏项目:Machine Learning Visualized,直接把算法训练过程可视化给你看,权重怎么更新、怎么收敛,全程摊开没有遮掩。

你能拿到的东西:

神经网络/逻辑回归/感知器完整实现 从第一性原理推导,公式不跳步 交互式笔记本,参数随调随看 覆盖PCA、K-means、梯度下降 支持在线看,也能Docker本地一键部署。 https://github.com/gavinkhung/machine-learning-visualized…


gavinkhung/machine-learning-visualized

Source: https://github.com/gavinkhung/machine-learning-visualized

Machine Learning Visualized

website

URL: https://ml-visualized.com/

Machine Learning Visualized is a Jupyter Book containing Jupyter Notebooks that implement and mathematically derive machine learning algorithms from first-principles.

There are also Interactive Notebooks built with Marimo that allow you to see how the weights influence the loss functions.

The output of each notebook is a visualization of the machine learning algorithm throughout its training phase, ultimately converging at its optimal weights.

There is a separate Github Repository for each machine learning algorithm. Thus, this repository is simply the code to configure and build the Jupyter Book. At a very high level, Jupyter Books allow you to build a website with Markdown files and Jupyter Notebooks. Notice that none of the Jupyter Notebooks are in this repository. There is a SH script to download the relevant Jupyter Notebooks from other Github Repos. Once that is complete, the Jupyter Book can be built. The website is updated using the GitHub Action at .github/workflows/ci.yml after every commit or pull request. To build the website locally, see the Usage section below.

Jupyter Notebooks

Jupyter Book Info

Table of Contents and structure of the book is specified at _toc.yml.

Configuration is specified at _config.yml.

For more information, check out the Jupyter Book Docs.

Usage

Step 1: Download the Jupyter Notebooks

chmod +x ./download_notebooks.sh
./download_notebooks.sh

Step 2: Building the Jupyter Book

Option 1: jupyter-book CLI

pip install -U jupyter-book
jupyter-book build .

Option 2: Docker Compose

docker compose run jupyter-book 
docker compose down --volumes --rmi local

Option 3: Docker

docker build -f Dockerfile.book -t jupyter-book .
docker run --rm -v "$(pwd)":/usr/src/app jupyter-book

docker stop jupyter-book
docker rm jupyter-book
docker rmi jupyter-book

Step 3: Open the Jupyter Book

Navigate to _build/html/index.html

Build EPUB (NEW)

brew install --cask mactex
nbmerge $(ls chapter1/*.ipynb chapter2/*.ipynb chapter3/*.ipynb chapter4/*.ipynb | sort) -o book/combined.ipynb
jupyter nbconvert --to latex book/combined.ipynb

docker build -f Dockerfile.pandoc -t my-pandoc .
docker run --rm -v $(pwd):/data my-pandoc pandoc book/main.tex -o book/main.epub --mathml --embed-resources --standalone

Output

Marimo Interactive Notebooks

Marimo

Mathematically Explained

latex

相似文章

@cevenif: 市面上90%的机器学习教程其实都在误导你——光会训练模型又能怎样?上不了生产线,前面全白搭。 说真的,这个坑我见过太多人往里跳了:跟着教程把模型训得飞起,一扔进真实环境就当场歇菜——不知道怎么部署、不会做监控、扩展性一塌糊涂。 哈佛大学直…

X AI KOLs Timeline

哈佛大学开源《Machine Learning Systems》教材,系统讲解ML系统设计、数据工程、模型部署、MLOps和边缘AI等实践内容,旨在帮助将AI从研究落地到生产环境,免费获取于GitHub。

@knowledgefxg: 学机器学习最痛苦的事情是什么?是对着一堆公式发呆,死记硬背,项目作者把神经网络、逻辑回归等这些经典算法,从数学第一原理开始推导,一步一步写成 Jupyter Notebook,然后把整个训练过程可视化出来,让你在学习的时候有个直观的感觉。…

X AI KOLs Timeline

推荐一个机器学习学习资源,该项目从数学第一原理推导经典算法,并通过 Jupyter Notebook 逐步实现和可视化训练过程,帮助学习者直观理解。

@XAMTO_AI: 不少人嘀咕:AI编程都这么猛了,基础知识还用得着学吗? 用得着,而且越来越用得着。 安利一个GitHub上的宝藏项目:Professional Programming,从算法到系统设计再到代码质量,覆盖得明明白白。学习路径清晰,不是那种甩…

X AI KOLs Timeline

推荐GitHub上的Professional Programming项目,涵盖算法、系统设计、代码质量等编程基础知识,提供清晰学习路径和实战练习,强调在AI编程时代基础知识仍然重要。