{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "mattn-tensai--train-small-network-in-go",
 "repo": "mattn/tensai",
 "repo_url": "https://github.com/mattn/tensai",
 "repo_slug": "mattn-tensai",
 "title": "Train a small neural network in pure Go",
 "page_title": "How to train a small neural network in pure Go with Tensai",
 "summary": "Run the bundled XOR example to see forward passes and backprop work with no dependencies.",
 "who": "A Go developer who wants to learn neural networks and has no Python setup or GPU available.",
 "problem": "Most tutorials assume Python and heavy frameworks, which makes it hard to see how training works in plain code.",
 "outcome": "A working XOR classifier trained by Tensai, plus a readable Go program to modify for other small problems.",
 "steps": [
  "Install Go 1.26 or newer. (inferred, check the README)",
  "Run `git clone https://github.com/mattn/tensai` (inferred, check the README)",
  "Run `cd tensai/_example/xor` (inferred, check the README)",
  "Run `go run .` (inferred, check the README)",
  "Check the printed results, if any, against the XOR targets of 0, 1, 1, 0."
 ],
 "agent_prompt": "Clone the mattn/tensai repository and run the program in _example/xor with go run. Report the trained predictions for the four XOR inputs. Verify that the outputs are close to 0, 1, 1, 0.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README lists the XOR example but the exact run command and printed output are not shown, so the steps above are inferred from the repository layout.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Go toolchain (Go 1.26 or 1.27 is needed only for the GOEXPERIMENT=simd build)",
  "git to clone the repository",
  "Disk space for model checkpoints when using the image, audio, or embedding commands"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mattn-tensai/train-small-network-in-go/",
 "md": "https://dedupedai.com/use-cases/mattn-tensai/train-small-network-in-go/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mattn-tensai--train-small-network-in-go.json",
 "api_version": "v1"
}
