Ranked awesome lists, all in one place
This list is a copy of arbox/machine-learning-with-ruby with ranks
[RubyNLP ★762 | RubyDataScience ★411 | RubyInterop ★6]
Awesome Machine Learning with Ruby ★87749
A Curated List of Ruby Machine Learning Links and Resources
Machine Learning is a field of Computational Science - often nested under AI research - with many practical applications due to the ability of resulting algorithms to systematically implement a specific solution without explicit programmer’s instructions. Obviously many algorithms need a definition of features to look at or a biggish training set of data to derive the solution from.
This curated list comprises awesome libraries, data sources, tutorials and presentations about Machine Learning utilizing the Ruby programming language.
A lot of useful resources on this list come from the development by The Ruby Science Foundation, our contributors and our own day to day work on various ML applications. Read why this list is awesome.
Every contribution is welcome! Add links through pull requests or create an issue to start a discussion.
Follow us on Twitter and please spread
the word using the #RubyML
hash tag!
Contents
- Tutorials
- Machine Learning Libraries
- Applications of machine learning
- Data structures
- Data visualization
- Articles, Posts, Talks, and Presentations
- Projects and Code Examples
- Heroku buildpacks
- Books, Blogs, Channels
- Community
- Needs your Help!
- Related Resources
- Wait but why?
- License
Tutorials
Please help us to fill out this section!
- How to implement linear regression in Ruby [code ★2 ⏳1Y]
- How to implement classification using logistic regression in Ruby
- How to implement simple binary classification using a Neural Network in Ruby [code ★10 ⏳1Y]
- How to implement classification using a SVM in Ruby [code ★3]
- Unsupervised learning using k-means clustering in Ruby [code ★0]
- Teaching an AI to play a simple game using Q-Learning in Ruby [code ★25]
- Teaching a Neural Network to play a game using Q-Learning in Ruby [code]
- Using the Python scikit-learn machine learning library in Ruby using PyCall [code ★1]
- How to evolve neural networks in Ruby using the Machine Learning Workbench
Machine Learning Libraries
Machine Learning algorithms in pure Ruby or written in other programming languages with appropriate bindings for Ruby.
Frameworks
- weka ★54 - JRuby bindings for Weka, different ML algorithms implemented through Weka.
- ai4r ★689 - Artificial Intelligence for Ruby.
- classifier-reborn ★409 - General classifier module to allow Bayesian and other types of classifications. [dep: GLS]
- scoruby ★33 - Ruby scoring API for PMML (Predictive Model Markup Language).
- rblearn ★0 ⏳1Y - Feature Extraction and Crossvalidation library.
- data_modeler ★1 ⏳1Y - Model your data with machine learning. Ample test coverage, examples to start fast, complete documentation. Production ready since 1.0.0.
- shogun ★2136 - Polyfunctional and mature machine learning toolbox with Ruby bindings and enormous documentation.
- aws-sdk-machinelearning ★2686 - Machine Learning API of the Amazon Web Services.
- azure_mgmt_machine_learning ★199 - Machine Learning API of the Microsoft Azure.
- machine_learning_workbench ★2 - Growing machine learning framework written in pure Ruby, high performance computing using Numo, CUDA bindings through Cumo ★35. Currently implementating neural networks, evolutionary strategies, vector quantization, and plenty of examples and utilities.
- Deep NeuroEvolution ★52 - Experimental setup based on the machine_learning_workbench ★2 towards searching for deep neural networks (rather than training) using evolutionary algorithms. Applications to the OpenAI Gym using PyCall ★422.
Neural networks
- neural-net-ruby ★91 ⏳1Y - Neural network written in Ruby.
- ruby-fann ★368 ⏳2Y - Ruby bindings to the Fast Artificial Neural Network Library (FANN).
- cerebrum ★33 ⏳1Y - Experimental implementation for Artificial Neural Networks in Ruby.
- tlearn-rb ★95 - Recurrent Neural Network library for Ruby.
- brains ★57 ⏳1Y - Feed-forward neural networks for JRuby based on brains ★0 ⏳1Y.
- machine_learning_workbench - Framework including pure-Ruby implementation of both feed-forward and recurrent neural networks (fully connected). Training available using neuroevolution (Natural Evolution Strategies algorithms).
- rann ★1 - Flexible Ruby ANN implementation with backprop (through-time, for recurrent nets), gradient checking, adagrad, and parallel batch execution.
Kernel methods
- rb-libsvm ★264 - Support Vector Machines with Ruby and the LIBSVM library. [dep: bundled]
Evolutionary algorithms
- machine_learning_workbench - Framework including pure-Ruby implementations of Natural Evolution Strategy algorithms (black-box optimization), specifically Exponential NES (XNES), Separable NES (sNES), Block-Diagonal NES (BDNES) and more. Applications include neural network search/training (neuroevolution).
- simple_ga ★0 ⏳1Y - Simplest Genetic Algorithms implementation in Ruby.
Bayesian methods
- linnaeus ★30 ⏳2Y - Redis-backed Bayesian classifier.
- naive_bayes ★37 ⏳6Y - Simple Naive Bayes classifier.
- nbayes ★125 ⏳1Y - Full-featured, Ruby implementation of Naive Bayes.
Decision trees
- decisiontree ★1060 - Decision Tree ID3 Algorithm in pure Ruby. [dep: GraphViz | post].
Clustering
- flann ★894 - Fast Library for Approximate Nearest Neighbors. [flann]
- kmeans-clusterer ★47 ⏳3Y - k-means clustering in Ruby.
- k_means ★109 ⏳2Y - Attempting to build a fast, memory efficient K-Means program.
- knn ★29 ⏳2Y - Simple K Nearest Neighbour Algorithm.
Linear classifiers
- liblinear-ruby-swig ★81 ⏳5Y - Ruby interface to LIBLINEAR (much more efficient than LIBSVM for text classification).
- liblinear-ruby ★70 ⏳1Y - Ruby interface to LIBLINEAR using SWIG.
Statistical models
- rtimbl ★5 ⏳8Y - Memory based learners from the Timbl framework.
- lda-ruby ★122 - Ruby implementation of the LDA (Latent Dirichlet Allocation) for automatic Topic Modelling and Document Clustering.
- maxent_string_classifier ★8 ⏳9Y - JRuby maximum entropy classifier for string data, based on the OpenNLP Maxent framework.
- omnicat ★8 ⏳4Y - Generalized rack framework for text classifications.
- omnicat-bayes ★23 ⏳4Y - Naive Bayes text classification implementation as an OmniCat classifier strategy. [dep: bundled]
Applications of machine learning
- phashion ★629 - Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files. [ImageMagick | libjpeg]
Data structures
If you’re going to implement your own ML algorithms you’re probably interested in storing your feature sets efficiently. Look for appropriate data structures ★411 in our Data Science with Ruby list.
Data visualization
Please refer to the Data Visualization ★411 section on the Data Science with Ruby list.
Articles, Posts, Talks, and Presentations
- 2018
- Deep Learning Programming on Ruby by Kenta Murata & Yusaku Hatanaka [slides | page]
- 2017
- Scientific Computing on JRuby by Prasun Anand [slides | video | slides | slides]
- Is it Food? An Introduction to Machine Learning by Matthew Mongeau [video | slides]
- Bayes is BAE by Richard Schneeman [video | slides]
- Ruby Roundtable: Machine Learning in Ruby by RubyThursday [video]
- 2016
- Practical Machine Learning with Ruby by Jordan Hudgens [tutorial]
- Deep Learning: An Introduction for Ruby Developers by Geoffrey Litt [slides]
- How I made a pure-Ruby word2vec program more than 3x faster by Kei Sawada [slides]
- Dōmo arigatō, Mr. Roboto: Machine Learning with Ruby by Eric Weinstein [slides | video]
- Building a Recommendation Engine with Machine Learning Techniques by Brian Sam-Bodden [video]
- SciRuby Machine Learning: Current Status and Future by Kenta Murata [slides | video: jp]
- Ruby Roundtable: Intro to Tensorflow by RubyThursday [video]
- 2015
- Machine Learning made simple with Ruby by Lorenzo Masini [post]
- Using Ruby Machine Learning to Find Paris Hilton Quotes by Rick Carlino [tutorial]
- 2014
- Test Driven Neural Networks by Matthew Kirk [video]
- Five machine learning techniques that you can use in your Ruby apps today by Benjamin Curtis [video | slides]
- Machine Learning for Fun and Profit by John Paul Ashenfelter [video]
- 2013
- Sentiment Analysis using Support Vector Machines in Ruby by Matthew Kirk [video | code ★14 ⏳4Y]
- Recommender Systems with Ruby by Marcel Caraciolo [slides]
- 2012
- Machine Learning with Ruby, Part One by Vasily Vasinov [tutorial]
- Recurrent Neural Networks in Ruby by Joseph Wilk [post]
- Recommendation Engines using Machine Learning, and JRuby by Matthew Kirk [video]
- Practical Machine Learning and Rails by Andrew Cantino and Ryan Stout [video]
- 2011
- Clustering in Ruby by Colin Drake [post]
- Text Classification using Support Vector Machines in Ruby by Rimas Silkaitis [post]
- 2010
- bayes_motel – Bayesian classification for Ruby by Mike Perham [post]
- Intelligent Ruby: Getting Started with Machine Learning by Ilya Grigorik [video]
-
2009
- 2008
- Support Vector Machines (SVM) in Ruby by Ilya Grigorik [post]
- 2007
- Decision Tree Learning in Ruby by Ilya Grigorik [post]
Projects and Code Examples
- Wine Clustering ★0 ⏳4Y - Wine quality estimations clustered with different algorithms.
- simple_ga ★0 ⏳1Y - Basic (working) demo of Genetic Algorithms in Ruby.
Heroku buildpacks
Books, Blogs, Channels
- Kirk, Matthew. Thoughtful Machine Learning: A Test-Driven Approach. O’Reilly, 2014. [Amazon | code ★119 ⏳3Y]
- Practical Artificial Intelligence - Blog about Artificial Intelligence and Machine Learning with tutorials and code samples in Ruby.
Community
Needs your Help!
All projects in this section are really important for the community but need more attention. Please if you have spare time and dedication spend some hours on the code here.
Related Resources
-
GSL (GNU Scientific Library)
brew install gsl
-
OpenCV
brew tap homebrew/science && brew install opencv
-
Graphviz
brew install graphviz
-
Gnuplot
brew install gnuplot --with-x11
- X11/XQuartz
-
ImageMagick && libjpeg
brew install imagemagick && brew install libjpeg
-
R
brew tap homebrew/science && brew install r
-
Octave
brew tap homebrew/science && brew install octave --without-docs
- scikit-learn algorithm cheatsheet
- Awesome Ruby ★8802 - Among other awesome items a short list of NLP related projects.
- Ruby NLP ★1071 - State-of-Art collection of Ruby libraries for NLP.
- Speech and Natural Language Processing ★1746 - General List of NLP related resources (mostly not for Ruby programmers).
- Scientific Ruby - Linear Algebra, Visualization and Scientific Computing for Ruby.
- iRuby ★390 - IRuby kernel for Jupyter (formelly IPython).
- Kiba ★1047 - Lightweight ETL (Extract, Transform, Load) pipeline.
- Awesome OCR ★529 - Multitude of OCR (Optical Character Recognition) resources.
- Awesome TensorFlow ★11823 - Machine Learning with TensorFlow libraries.
- rb-gsl ★75 - Ruby interface to the GNU Scientific Library.
- The Definitive Guide to Ruby’s C API - Modern Reference and Tutorial on Embedding and Extending Ruby using C programming language.
Wait but why?
There are a lot of software lists with ML related tools. There are a couple of lists with Ruby related projects. There are no lists of only working and tested software with documented scope. We’ll try to make one!
What is awesome? Awesome are documented, maintained and focused tools.
Can something turn not awesome at a point? Yes! Abandoned projects with broken dependencies aren’t awesome any more! They leave this list.
License
Awesome ML with Ruby
by Andrei Beliankou and
Contributors.
To the extent possible under law, the person who associated CC0 with
Awesome ML with Ruby
has waived all copyright and related or neighboring rights
to Awesome ML with Ruby
.
You should have received a copy of the CC0 legalcode along with this work. If not, see https://creativecommons.org/publicdomain/zero/1.0/.
This list is a copy of arbox/machine-learning-with-ruby with ranks