• Stars
    star
    103
  • Rank 321,100 (Top 7 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A flexible framework for neural network for Ruby

Red Chainer : A deep learning framework

A flexible framework for neural network for Ruby

Description

It ported python's Chainer with Ruby.

Requirements

  • Ruby 2.4 or later

Installation

Add this line to your application's Gemfile:

gem 'red-chainer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install red-chainer

Usage

Run MNIST example

MNIST sample program is here

# when install Gemfile
$ bundle exec ruby examples/mnist/mnist.rb
# when install yourself
$ ruby examples/mnist/mnist.rb

Run MNIST example with GPU

On GPU machine, add gem 'cumo' on Gemfile.local 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

Development

Run tests

$ bundle exec ruby test/run_test.rb

Run tests with Cumo

On GPU machine, add gem 'cumo' on Gemfile.local 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

License

The MIT license. See LICENSE.txt for details.

Red Chainer implementation status

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

More Repositories

1

YouPlot

A command line tool that draw plots on the terminal.
Ruby
3,885
star
2

unicode_plot.rb

Plot your data by Unicode characters
Ruby
245
star
3

charty

Visualizing your data in Ruby
Ruby
190
star
4

jekyll-jupyter-notebook

Jekyll Jupyter Notebook plugin
Ruby
159
star
5

GR.rb

Ruby wrapper for the GR framework
Ruby
91
star
6

red_amber

A dataframe library for Rubyists.
Ruby
59
star
7

red-arrow

Ruby bindings for Apache Arrow based on GObject Introspection
Ruby
52
star
8

red-datasets

A RubyGem that provides common datasets
Ruby
30
star
9

extpp

C++ Ruby extension API
C++
20
star
10

packages.red-data-tools.org

The source of packages.red-data-tools.org
Ruby
13
star
11

red-arrow-duckdb

A library that provides Apache Arrow support to ruby-duckdb
C++
10
star
12

parquet-glib

GLib wrapper library of Apache Parquet
C++
9
star
13

red-parquet

Ruby bindings for Apache Parquet based on GObject Introspection
Ruby
7
star
14

red-opencv

Ruby bindings for OpenCL based on GObject Introspection
Ruby
6
star
15

red-optuna

Ruby bindings for Optuna, a hyperparameter optimization framework
Ruby
5
star
16

activerecord-duckdb-adapter

Ruby
5
star
17

red-datasets-arrow

A Red Datasets plugin to export dataset as Apache Arrow object
Ruby
5
star
18

red-arrow-activerecord

A library that provides conversion method between Apache Arrow and Active Record
Ruby
5
star
19

red-colors

Color features for Ruby
Ruby
4
star
20

red-arrow-nmatrix

A library that provides conversion method between Apache Arrow and NMatrix
Ruby
3
star
21

xtensor-arrow-glib

GLib wrapper library of xtensor for Apache Arrow
C++
3
star
22

opencv-glib

GLib bindings for OpenCV
C++
3
star
23

red-arrow-numo-narray

A library that provides conversion method between Apache Arrow and Numo::NArray
Ruby
3
star
24

red-table-query

Universal query interface for table data
Ruby
3
star
25

activerecord-adbc-adapter

ADBC based Active Record adapter
Ruby
3
star
26

red-datasets-numo-narray

A Red Datasets plugin to export dataset as Numo::NArray object
Ruby
3
star
27

red-arrow-pycall

A library that provides conversion method between Apache Arrow and PyCall
Ruby
3
star
28

dlib-glib

GLib bindings for Dlib
C++
2
star
29

fluent-plugin-s3-arrow

Extends the fluent-plugin-s3 compression algorithm to enable red-arrow compression.
Ruby
2
star
30

red-datasets-parquet

A Red Datasets plugin to process datasets provided as Apache Parquet format
Ruby
2
star
31

red-datasets-gdk-pixbuf

A Red Datasets plugin to export dataset as GdkPixbuf::Pixbuf object
Ruby
2
star
32

red-float

Float32 and Float16 for Ruby
C
1
star
33

red-arrow-gsl

A library that provides conversion method between Apache Arrow and Ruby/GSL
Ruby
1
star
34

charty-backends-jfreechart

Charty JFreeChart backend adapter
Ruby
1
star
35

red-datasets-daru

A Red Datasets plugin to export dataset as Daru::DataFrame object
Ruby
1
star
36

gr-plot

A simple, matlab-style API for GR.rb
Ruby
1
star
37

events

Repository for Red Data Tools related events
1
star
38

red-data-tools.github.io

The Red Data Tools project site
SCSS
1
star
39

red-data-reader

Ruby library to read data
Ruby
1
star
40

red-arrow-gpu

Ruby bindings for Apache Arrow GPU based on GObject Introspection
Ruby
1
star
41

activerecord-arrow-adapters

Connection adapters using Apache Arrow internally
Ruby
1
star