
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
A flexible framework for neural network for Ruby
It ported python's Chainer with Ruby.
Add this line to your application's Gemfile:
gem 'red-chainer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install red-chainer
MNIST sample program is here
# when install Gemfile
$ bundle exec ruby examples/mnist/mnist.rb
# when install yourself
$ ruby examples/mnist/mnist.rb
On GPU machine, add gem 'cumo'
on Gemfile and do bundle install
.
Run the example with --gpu
option whose value indicates GPU device ID such as:
$ bundle exec ruby examples/mnist/mnist.rb --gpu 0
$ bundle exec ruby test/run_test.rb
On GPU machine, add gem 'cumo'
on Gemfile and do bundle install
.
Run tests with RED_CHAINER_GPU
environment variable whose value indicates GPU device ID such as:
$ bundle exec env RED_CHAINER_GPU=0 ruby test/run_test.rb
The MIT license. See LICENSE.txt for details.
Chainer 2.0 (Initial ported version) | Red Chainer (0.3.1) | example | |
---|---|---|---|
activation | 15 | 5 | LogSoftmax, ReLU, LeakyReLU, Sigmoid, Tanh |
loss | 17 | 2 | SoftMax, MeanSquaredError |
optimizer | 9 | 2 | Adam, MomentumSGDRule |
connection | 12 | 2 | Linear, Convolution2D |
pooling | 14 | 3 | Pooling2D, MaxPooling2D, AveragePooling2D |
example | 31 | 3 | MNIST, Iris, CIFAR |
GPU | use CuPy | use Cumo |
FAQs
Unknown package
We found that red-chainer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.