generall / SkNN-ruby

Structured kNN algorithm implementation in ruby

Repository from Github https://github.comgenerall/SkNN-rubyRepository from Github https://github.comgenerall/SkNN-ruby

SkNN-ruby

Structured kNN algorithm implementation in ruby.

SkNN is an algorithm for sequence tagging or classification.

Usage

install dependencies

bundle install

Learn model

Example of learning pen written digits from http://archive.ics.uci.edu/ml/datasets/UJI+Pen+Characters

ruby sknn.rb -l model.dat data/nums/*

Execute classification

ruby sknn.rb -x model.dat -o result.txt data/light_num_test.csv

About

Structured kNN algorithm implementation in ruby


Languages

Language:Ruby 72.9%Language:HTML 20.0%Language:JavaScript 7.1%