forestjs

Source

  • Source kind: github-repository
  • URL: https://github.com/karpathy/forestjs
  • Discovery source: https://github.com/karpathy/forestjs
  • License: MIT
  • Distribution policy: public-summary-plus-license-aware-excerpts
  • Public mirror status: partial excerpt
  • Content hash: ed139d81ca3ee1a1aebbb95cfff9e9ec0d585700c02bc5d8392d7e9a92aeb14a
  • First seen: 2026-05-15
  • Last changed: 2026-05-15

Classification

Summary

forestjs Andrej Karpathy July 2012 forestjs is a Random Forest implementation for Javascript. Currently only binary classification is supported. You can also define your own weak learners to use in the decision trees. Online GUI demo Can be found here: http://cs.stanford.edu/~karpathy/svmjs/demo/demoforest.html Corresponding code is inside /demo directory. Usage The simplest use case: The library supports arbitrary weak learners. Currently implemented are a decision stump (1-dimensional decisions) and 2D decision stumps. Options There are 3 main options that can be passed in to training: numTrees: You want to set…

What This Teaches

  • How earlier vision and captioning systems connect representation learning with language outputs.
  • Useful historical context for multimodal LLM research and evaluation.

Why It Matters

This matters as part of Karpathy’s broader pattern: compress hard technical systems into readable, inspectable, working artifacts.

Repository Snapshot

  • Full name: karpathy/forestjs
  • Default branch: master
  • HEAD: 0e47c3af4c0e3b1d3b7f4a62d5a09deea35ec099
  • Stars at crawl: 336
  • Forks at crawl: 56
  • File count: 23
  • README path: README.md
  • License path: “
  • Created: 2012-07-13T06:54:13Z
  • Updated: 2026-05-09T09:23:10Z
  • Pushed: 2012-10-04T11:01:00Z

Top-Level Structure

  • demo: 20
  • [root]: 2
  • lib: 1

File Extension Profile

  • .png: 14
  • .js: 5
  • .css: 1
  • .html: 1
  • .md: 1
  • [none]: 1

Tags / Release-Like Markers

  • No git tags found in the shallow local clone.

Sample File Tree

  • demo/demoforest.html
  • demo/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  • demo/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  • demo/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png
  • demo/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png
  • demo/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
  • demo/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
  • demo/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png
  • demo/jqueryui/css/ui-lightness/jquery-ui-1.8.21.custom.css
  • demo/jqueryui/js/jquery-1.7.2.min.js
  • demo/jqueryui/js/jquery-ui-1.8.21.custom.min.js
  • demo/npg_include/npgmain.js
  • demo/npg_include/vector2D.js
  • lib/randomforest.js
  • MIT-LICENSE
  • README.md

Public Handling Notes

  • EXTRACTED: This page records public metadata and a source-grounded summary.
  • INFERRED: Full local preservation, when available, is for private/local use unless a license or explicit source policy makes public redistribution safe.
  • Do not treat this page as permission to republish unlicensed source text or code wholesale.