UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
require 'socket' | |
module EventEmitter | |
def _callbacks | |
@_callbacks ||= Hash.new { |h, k| h[k] = [] } | |
end | |
def on(type, &blk) | |
_callbacks[type] << blk | |
self |