machine-learning-with-ruby
Curated list: Resources for machine learning in Ruby
https://github.com/arbox/machine-learning-with-ruby
Last synced: 15 days ago
JSON representation
Applications of machine learning
- phashion - -Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files.[ImageMagick | libjpeg]
Articles, Posts, Talks, and Presentations
- Joseph Emmanuel Dayo - [post]
- RubyThursday - [video]
- Rick Carlino - [tutorial]
- Justin Bowen - [video]
- @kojix - [post]
- Denis Sellu - [post]
- Matthew Mongeau - [video |slides]
- Richard Schneeman - [video |slides]
- Jordan Hudgens - [tutorial]
- Brian Sam-Bodden - [video]
- Matthew Kirk - [video]
- Benjamin Curtis - [video |slides]
- John Paul Ashenfelter - [video]
- Marcel Caraciolo - [slides]
- Joseph Wilk - [post]
- Andrew Cantino - and Ryan Stout[video]
- Rimas Silkaitis - [post]
Books, Blogs, Channels
- Practical Artificial Intelligence - -Blog about Artificial Intelligence and Machine Learning with tutorials and code samples in Ruby.
Community
Heroku buildpacks
Machine Learning Libraries
Bayesian methods
- linnaeus - -Redis-backed Bayesian classifier.
- naive_bayes - -Simple Naive Bayes classifier.
- nbayes - -Full-featured, Ruby implementation of Naive Bayes.
Clustering
- kmeans-clusterer - -k-means clustering in Ruby.
- k_means - -Attempting to build a fast, memory efficient K-Means program.
- knn - -Simple K Nearest Neighbour Algorithm.
Decision trees
- decisiontree - -Decision Tree ID3 Algorithm in pure Ruby.[dep: GraphViz |post].
Deep learning
- tensor_stream - -Ground-up and standalone reimplementation of TensorFlow for Ruby.
- red-chainer - Deep learning framework for Ruby.
- tensorflow - Ruby bindings for TensorFlow.
- ruby-dnn - Simple deep learning for Ruby.
- mxnet - Ruby bindings for mxnet.
- torch-rb - Ruby bindings for LibTorchusing rice.
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 - -Simplest Genetic Algorithms implementation in Ruby.
Frameworks
- ai4r - -Artificial Intelligence for Ruby.
- weka - -JRuby bindings for Weka, different ML algorithms implemented through Weka.
- classifier-reborn - -General classifier module to allow Bayesian and other types of classifications.[dep: GLS]
- scoruby - -Ruby scoring API for PMML (Predictive Model Markup Language).
- LangChain.rb - -Build ML/AI-supercharged applications with Ruby's LangChain.
- rblearn - Feature Extraction and Crossvalidation library.
- data_modeler - -Model your data with machine learning. Ample test coverage, examples to start fast, complete documentation. Production ready since 1.0.0.
- shogun - Polyfunctional and maturemachine learning toolbox with Ruby bindings.
- aws-sdk-machinelearning - -Machine Learning API of the Amazon Web Services.
- azure_mgmt_machine_learning - -Machine Learning API of the Microsoft Azure.
- machine_learning_workbench - -Growing machine learning framework written in pure Ruby, high performance computing usingNumo, CUDA bindings through Cumo.Currently implementating neural networks, evolutionary strategies, vector quantization, and plenty ofexamples and utilities.
- Deep NeuroEvolution - -Experimental setup based on the machine_learning_workbenchtowards searching for deep neural networks (rather than training) using evolutionary algorithms. Applications to theOpenAI Gym using PyCall.
- rumale - -Machine Learninig toolkit in Ruby with wide range of implemented algorithms(SVM, Logistic Regression, Linear Regression, Random Forest etc.) andinterfaces similar to Scikit-Learn in Python.
- eps - Bayesian Classification and Linear Regression with exportsusing PMML and an alternative backend using GSL.
- ruby-openai - OpenAI API wrapper
- Instruct - Inspired by Guidance; weave code, prompts and completions together to instruct LLMs to do what you want.
Gradient boosting
- xgboost - —Ruby bindings for XGBoost.[dep: XGBoost]
- xgb - —Ruby bindings for XGBoost.[dep: XGBoost]
- lightgbm - —Ruby bindings for LightGBM.[dep: LightGBM]
Kernel methods
- rb-libsvm - -Support Vector Machines with Ruby and the LIBSVM library.[dep: bundled]
Linear classifiers
- liblinear-ruby-swig - -Ruby interface to LIBLINEAR (much more efficient than LIBSVM for text classification).
- liblinear-ruby - -Ruby interface to LIBLINEAR using SWIG.
Neural networks
- 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).
- neural-net-ruby - -Neural network written in Ruby.
- ruby-fann - -Ruby bindings to the Fast Artificial Neural Network Library (FANN).
- cerebrum - -Experimental implementation for Artificial Neural Networks in Ruby.
- tlearn-rb - -Recurrent Neural Network library for Ruby.
- brains - -Feed-forward neural networks for JRuby based onbrains.
- rann - -Flexible Ruby ANN implementation with backprop (through-time, for recurrentnets), gradient checking, adagrad, and parallel batch execution.
Statistical models
- rtimbl - -Memory based learners from the Timbl framework.
- lda-ruby - -Ruby implementation of the LDA(Latent Dirichlet Allocation) for automatic Topic Modelling and Document Clustering.
- maxent_string_classifier - -JRuby maximum entropy classifier for string data, based on the OpenNLP Maxent framework.
- omnicat - -Generalized rack framework for text classifications.
- omnicat-bayes - -Naive Bayes text classification implementation as an OmniCat classifier strategy.[dep: bundled]
Vector search
- hnswlib.rb - -Ruby bindings for the Hnswlib that implements approximate nearest neighbor search with Hierarchical Navigable Small World graphs.
- ngt-ruby - -Ruby bindings for the NGT (Neighborhood Graph and Tree for Indexing High-dimensional data).
- milvus - —Ruby client for Milvus Vector DB.
- pinecone - —Ruby client for Pinecone Vector DB.
- annoy-rb - -Ruby bindings for the Annoy (Approximate Nearest Neighbors Oh Yeah).
Projects and Code Examples
- Wine Clustering - -Wine quality estimations clustered with different algorithms.
- Handwritten Digits Recognition - -Handwritten digits recognition using Neural Networks and Ruby.
Related Resources
- OpenCV
- X11/XQuartz
- ImageMagick
- R
- scikit-learn algorithm cheatsheet
- Awesome Ruby - -Among other awesome items a short list of NLP related projects.
- Speech and Natural Language Processing - -General List of NLP related resources (mostly not for Ruby programmers).
- Awesome TensorFlow - -Machine Learning with TensorFlow libraries.
- LightGBM
- XGBoost
- Gnuplot
- Octave
- Ruby NLP - -State-of-Art collection of Ruby libraries for NLP.
- Scientific Ruby - -Linear Algebra, Visualization and Scientific Computing for Ruby.
- iRuby - IRuby kernel for Jupyter (formerly IPython).
- Kiba - -Lightweight ETL (Extract, Transform, Load) pipeline.
- Awesome OCR - -Multitude of OCR (Optical Character Recognition) resources.
- rb-gsl - -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.
Tutorials
- Ruby neural networks
- How to implement linear regression in Ruby - [code]
- How to implement classification using logistic regression in Ruby
- How to implement simple binary classification using a Neural Network in Ruby - [code]
- How to implement classification using a SVM in Ruby - [code]
- Unsupervised learning using k-means clustering in Ruby - [code]
- Teaching an AI to play a simple game using Q-Learning in Ruby - [code]
- 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]
- How to evolve neural networks in Ruby using the Machine Learning Workbench