RubyGems Navigation menu

ai4r 2.0

AI4R is a lightweight, educational Ruby library featuring clean implementations of core machine learning and AI algorithms—such as decision trees, neural networks, k-means, genetic algorithms, and even a bit size Transformers architecture covering encoder, decoder, and seq2seq variations. Designed with simplicity and clarity in mind, this library is ideal for students, educators, and developers who want to understand these algorithms line by line. With no external dependencies, no GPU support, and no production overhead, AI4R serves as a practical and transparent way to explore the foundations of AI in Ruby. It is a long-maintained open-source effort to bring accessible, hands-on machine learning to the Ruby community.

Gemfile:
=

install:
=

Versions:

  1. 2.0 July 17, 2025 (79 KB)
  2. 1.13 February 05, 2014 (58 KB)
  3. 1.12 September 07, 2012 (50.5 KB)
  4. 1.11 February 28, 2012 (50.5 KB)
  5. 1.9 August 04, 2009 (49 KB)
Show all versions (15 total)

Owners:

Pushed by:

Authors:

  • Sergio Fierens

SHA 256 checksum:

=

Total downloads 260,744

For this version 164

Version Released:

License:

Unlicense

Required Ruby Version: >= 3.1

New versions require MFA: true

Version published with MFA: true

Links: