1. Install the gem: gem install http://rubyforge.org/frs/download.php/32923/ai4r-1.0.gem Include require statements in your code: require "rubygems" require "decision_tree/id3" require "neural_network/backpropagation" require "genetic_algorithm/genetic_algorithm"