whatisgithub

What is machine-learning-experiments?

trekhleb/machine-learning-experiments — explained in plain English

Analysis updated 2026-05-18

1,810Jupyter NotebookAudience · researcherComplexity · 3/5Setup · moderate

In one sentence

A collection of learning-focused machine learning experiments, each with a training notebook and a live browser demo you can interact with directly.

Mindmap

mindmap
  root((ML Experiments))
    What it does
      Training notebooks
      Live browser demos
      Learning sandbox
    Tech stack
      Python
      TensorFlow
      Keras
      TensorFlow.js
    Use cases
      Digit recognition demo
      Text generation demo
      Object detection demo
    Audience
      Students
      ML beginners
    Notes
      Not production ready
      Companion algorithms repo

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

What do people build with it?

USE CASE 1

Play with live demos in the browser, like drawing a digit or playing rock-paper-scissors against a model.

USE CASE 2

Follow a Jupyter notebook to see exactly how a specific model type was trained.

USE CASE 3

Learn how models get converted from Python to a browser-friendly JavaScript format.

USE CASE 4

Use it as a study reference before building a real machine learning project.

What is it built with?

PythonTensorFlowKerasJavaScriptTensorFlow.js

How does it compare?

trekhleb/machine-learning-experimentsraiyanyahya/how-to-train-your-gptkrishnaik06/interview-prepartion-data-science
Stars1,8102,2781,041
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Last pushed2026-06-232024-01-12
MaintenanceActiveDormant
Setup difficultymoderateeasyeasy
Complexity3/52/51/5
Audienceresearcherdeveloperdata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires setting up both a Python environment and a Node environment to run everything locally.

No license information is given in the README.

So what is it?

This repository is a collection of machine learning experiments put together for learning purposes, not production use. The author is clear about this: models may not perform well, and the code is not optimized. Think of it as a personal sandbox where different AI approaches were tested and documented. Each experiment has two parts. The first is a Jupyter notebook that walks through how a model was trained, including the data used and the decisions made along the way. The second is a live demo page where you can interact with the trained model directly in your browser, no installation needed. You can draw a digit and see the model guess it, or play rock-paper-scissors against the camera. The experiments cover a range of techniques. Some work with images, recognizing handwritten digits, classifying objects, detecting items in photos, or telling apart rock, paper, and scissors hand gestures. Others work with sequences of text, generating new Shakespeare-style writing, cooking recipes, or Wikipedia-style passages. One experiment trains a network that generates clothing images from scratch by having two networks compete with each other. The technical stack is Python with TensorFlow and Keras for training, and JavaScript with TensorFlow.js for running the models in the browser. After training, the models are converted from a Python format into a JavaScript-readable format so the demo pages can load and run them client-side. The README notes this is not a typical production pattern, since loading large model files into a browser is inefficient, but it works fine for an experimental demo. Anyone who wants to run the experiments locally can follow the setup instructions for Python and Node environments. The repo also links to a companion repository with hand-coded versions of common algorithms and a simpler introduction to how neural networks learn.

Copy-paste prompts

Prompt 1
Explain how a trained TensorFlow model gets converted to run in the browser with TensorFlow.js.
Prompt 2
Walk me through the notebook for the handwritten digit recognition experiment step by step.
Prompt 3
Help me understand how the two competing networks in the clothing generation experiment work.
Prompt 4
Show me how to set up the Python and Node environments to run these experiments locally.

Frequently asked questions

What is machine-learning-experiments?

A collection of learning-focused machine learning experiments, each with a training notebook and a live browser demo you can interact with directly.

What language is machine-learning-experiments written in?

Mainly Jupyter Notebook. The stack also includes Python, TensorFlow, Keras.

What license does machine-learning-experiments use?

No license information is given in the README.

How hard is machine-learning-experiments to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is machine-learning-experiments for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.