{"id":23450784,"url":"https://github.com/red-data-tools/red-chainer","last_synced_at":"2025-10-25T11:41:20.722Z","repository":{"id":39707972,"uuid":"94381080","full_name":"red-data-tools/red-chainer","owner":"red-data-tools","description":"A flexible framework for neural network for Ruby","archived":false,"fork":false,"pushed_at":"2022-01-05T21:42:25.000Z","size":939,"stargazers_count":104,"open_issues_count":5,"forks_count":17,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-31T10:09:29.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/red-data-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-14T23:34:36.000Z","updated_at":"2024-10-05T10:20:43.000Z","dependencies_parsed_at":"2022-08-20T16:00:52.371Z","dependency_job_id":null,"html_url":"https://github.com/red-data-tools/red-chainer","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-chainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-chainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-chainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-chainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/red-data-tools","download_url":"https://codeload.github.com/red-data-tools/red-chainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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-12-24T00:15:07.093Z","updated_at":"2025-10-25T11:41:20.638Z","avatar_url":"https://github.com/red-data-tools.png","language":"Ruby","funding_links":[],"categories":["Machine Learning Libraries"],"sub_categories":["Deep learning"],"readme":"# Red Chainer : A deep learning framework\n\nA flexible framework for neural network for Ruby\n\n## Description\n\nIt ported python's [Chainer](https://github.com/chainer/chainer) with Ruby.\n\n## Requirements\n\n* Ruby 2.4 or later\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```bash\ngem 'red-chainer'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install red-chainer\n```\n\n## Usage\n\n### Run MNIST example\n\nMNIST sample program is [here](./examples/mnist/mnist.rb)\n\n```bash\n# when install Gemfile\n$ bundle exec ruby examples/mnist/mnist.rb\n# when install yourself\n$ ruby examples/mnist/mnist.rb\n```\n\n### Run MNIST example with GPU\n\nOn GPU machine, add `gem 'cumo'` on **Gemfile.local** and do `bundle install`.\n\nRun the example with `--gpu` option whose value indicates GPU device ID such as:\n\n```\n$ bundle exec ruby examples/mnist/mnist.rb --gpu 0\n```\n\n## Development\n\n### Run tests\n\n```\n$ bundle exec ruby test/run_test.rb\n```\n\n### Run tests with Cumo\n\nOn GPU machine, add `gem 'cumo'` on **Gemfile.local** and do `bundle install`.\n\nRun tests with `RED_CHAINER_GPU` environment variable whose value indicates GPU device ID such as:\n\n```\n$ bundle exec env RED_CHAINER_GPU=0 ruby test/run_test.rb\n```\n\n## License\n\nThe MIT license. See [LICENSE.txt](./LICENSE.txt) for details.\n\n## Red Chainer implementation status\n\n|    |  Chainer 2.0\u003cbr\u003e(Initial ported version)  | Red Chainer (0.3.1) | example |\n| ---- | ---- | ---- | ---- |\n|  [activation](https://github.com/red-data-tools/red-chainer/tree/master/lib/chainer/functions/activation)  |  15  | 5 | LogSoftmax, ReLU, LeakyReLU, Sigmoid, Tanh |\n|  [loss](https://github.com/red-data-tools/red-chainer/tree/master/lib/chainer/functions/loss)  |  17  | 2 | SoftMax, MeanSquaredError |\n|  [optimizer](https://github.com/red-data-tools/red-chainer/tree/master/lib/chainer/optimizers)  |  9  | 2 | Adam, MomentumSGDRule |\n|  [connection](https://github.com/red-data-tools/red-chainer/tree/master/lib/chainer/functions/connection)  |  12  | 2 | Linear, Convolution2D |\n|  [pooling](https://github.com/red-data-tools/red-chainer/tree/master/lib/chainer/functions/pooling)  |  14  | 3 | Pooling2D, MaxPooling2D, AveragePooling2D |\n|  [example](https://github.com/red-data-tools/red-chainer/tree/master/examples)  |  31  | 3 | MNIST, Iris, CIFAR |\n|  GPU  | use CuPy  | use [Cumo](https://github.com/sonots/cumo) ||\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fred-chainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-data-tools%2Fred-chainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fred-chainer/lists"}