svmjs
Source
- Source kind:
github-repository - URL: https://github.com/karpathy/svmjs
- Discovery source: https://github.com/karpathy/svmjs
- License:
MIT - Distribution policy:
public-summary-plus-license-aware-excerpts - Public mirror status:
partial excerpt - Content hash:
34fb575839f0f85fd841decb227dca38148fae5383a57d8b44f2981392c4781b - First seen: 2026-05-15
- Last changed: 2026-05-15
Classification
- Primary category: Vision / multimodal / captioning
- Corpus source note: 2026-05-15-karpathy-public-corpus
- Project taxonomy: karpathy-project-taxonomy
- Idea map: karpathy-idea-map
- Topic hub: karpathy-public-work
Summary
svmjs Andrej Karpathy July 2012 svmjs is a lightweight implementation of the SMO algorithm to train a binary Support Vector Machine. As this uses the dual formulation, it also supports arbitrary kernels. Correctness test, together with MATLAB reference code are in /test. Online GUI demo Can be found here: http://cs.stanford.edu/~karpathy/svmjs/demo/ Corresponding code is inside /demo directory. Usage The simplest use case: Here, data and testdata are a 2D, NxD array of floats, labels and testlabels is an array of size N that contains 1 or -1. You can also query for the raw margins: The library supports arbitrary…
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/svmjs - Default branch:
master - HEAD:
b75b71289dd81fc909a5b3fb8b1caf20fbe45121 - Stars at crawl: 708
- Forks at crawl: 153
- File count: 28
- README path:
README.md - License path: “
- Created: 2012-07-08T22:23:19Z
- Updated: 2026-05-15T02:02:42Z
- Pushed: 2018-04-14T01:03:04Z
Top-Level Structure
demo: 20test: 4[root]: 3lib: 1
File Extension Profile
.png: 14.js: 6.html: 2.css: 1.json: 1.m: 1.md: 1.pdf: 1[none]: 1
Tags / Release-Like Markers
- No git tags found in the shallow local clone.
Sample File Tree
demo/demosvm.htmldemo/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.pngdemo/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.pngdemo/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.pngdemo/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.pngdemo/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.pngdemo/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.pngdemo/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.pngdemo/jqueryui/css/ui-lightness/jquery-ui-1.8.21.custom.cssdemo/jqueryui/js/jquery-1.7.2.min.jsdemo/jqueryui/js/jquery-ui-1.8.21.custom.min.jsdemo/npg_include/npgmain.jsdemo/npg_include/vector2D.jslib/svm.jsMIT-LICENSEpackage.jsonREADME.mdtest/smo.pdftest/testnode.jstest/testsvm.htmltest/testsvm.m
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.