{"id":16840569,"url":"https://github.com/mitmul/ofchainer","last_synced_at":"2025-04-11T05:41:54.892Z","repository":{"id":141385340,"uuid":"75858843","full_name":"mitmul/ofChainer","owner":"mitmul","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-11T08:22:30.000Z","size":8,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:41:39.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitmul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-07T17:17:48.000Z","updated_at":"2024-04-25T02:50:04.000Z","dependencies_parsed_at":"2024-06-17T04:15:34.179Z","dependency_job_id":null,"html_url":"https://github.com/mitmul/ofChainer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2FofChainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2FofChainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2FofChainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2FofChainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitmul","download_url":"https://codeload.github.com/mitmul/ofChainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351347,"owners_count":21089268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:37:12.293Z","updated_at":"2025-04-11T05:41:54.883Z","avatar_url":"https://github.com/mitmul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1f-Chainer\n\nOne file Chainer\n\n## About One-file Chainer\n\n- Core functionalities of Chainer are implemented in 1 file\n- Only Linear, ReLU, MeanSquaredError and SGD are available\n- You can run \"mnist.py\" to make sure that it can train a 3-layers perceptron for classifying MNIST\n- 1 hot feature:\n\n  - You can switch all computations to GPU-mode by just replacing `import numpy as xp` with `import cupy as xp` found in the top of the file \"chainer.py\"\n\n\n## MNIST Training example\n\n### Run on CPU\n\n- Just run `mnist.py`\n\n```\npython mnist.py\n```\n\n### Run on GPU\n\n- Replace `import numpy as xp` with `import cupy as xp` in `chainer.py`\n- Then, run `mnist.py` with an option `--gpu 0`\n\n```\npython mnist.py --gpu 0\n```\n\n## minimum.py?\n\n\"minimum.py\" in this repository is another implementation example of 3-layers perceptron for MNIST. It contains\n\n- Linear\n- ReLU\n- Softmax cross entropy (grad)\n- Training code for MNIST\n- Accuracy calculation\n\nin **just 74 lines**. (\"chainer.py\" have 205 lines)\n\nTry:\n\n```\npython minimum.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fofchainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitmul%2Fofchainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fofchainer/lists"}