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 'lotus/model' | |
require 'json' | |
module Lotus::Model::Mapping::Coercions | |
def self.JSON(arg) | |
return nil if arg.nil? | |
case arg | |
when String | |
JSON.parse(arg) | |
else |