README.md in libmf-0.2.5 vs README.md in libmf-0.2.6

- old
+ new

@@ -1,12 +1,12 @@ -# LIBMF +# LIBMF Ruby [LIBMF](https://github.com/cjlin1/libmf) - large-scale sparse matrix factorization - for Ruby Check out [Disco](https://github.com/ankane/disco) for higher-level collaborative filtering -[![Build Status](https://github.com/ankane/libmf/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libmf/actions) +[![Build Status](https://github.com/ankane/libmf-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libmf-ruby/actions) ## Installation Add this line to your application’s Gemfile: @@ -14,18 +14,17 @@ gem 'libmf' ``` ## Getting Started -Prep your data in the format `[row_index, column_index, value]` +Prep your data in the format `row_index, column_index, value` ```ruby -data = [ - [0, 0, 5.0], - [0, 2, 3.5], - [1, 1, 4.0] -] +data = Libmf::Matrix.new +data.push(0, 0, 5.0) +data.push(0, 2, 3.5) +data.push(1, 1, 4.0) ``` Create a model ```ruby @@ -157,25 +156,25 @@ - [LIBMF: A Library for Parallel Matrix Factorization in Shared-memory Systems](https://www.csie.ntu.edu.tw/~cjlin/papers/libmf/libmf_open_source.pdf) ## History -View the [changelog](https://github.com/ankane/libmf/blob/master/CHANGELOG.md) +View the [changelog](https://github.com/ankane/libmf-ruby/blob/master/CHANGELOG.md) ## Contributing Everyone is encouraged to help improve this project. Here are a few ways you can help: -- [Report bugs](https://github.com/ankane/libmf/issues) -- Fix bugs and [submit pull requests](https://github.com/ankane/libmf/pulls) +- [Report bugs](https://github.com/ankane/libmf-ruby/issues) +- Fix bugs and [submit pull requests](https://github.com/ankane/libmf-ruby/pulls) - Write, clarify, or fix documentation - Suggest or add new features To get started with development: ```sh -git clone --recursive https://github.com/ankane/libmf.git -cd libmf +git clone --recursive https://github.com/ankane/libmf-ruby.git +cd libmf-ruby bundle install bundle exec rake vendor:all bundle exec rake test ```