【文件属性】:
文件名称:pearson:皮尔逊相关系数计算器
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-02 12:04:33
ruby entity recommendation-system recommendation-engine pearson
皮尔逊
皮尔逊相关系数计算器
安装
您可以使用 rubygems 安装pearson gem:
gem install pearson
如果你使用 Bundler,你可以将它包含到 Gemfile 中:
gem 'pearson', '~> 1.0'
用法
scores = {
'Jack' => {
'The Godfather' => 2.5 ,
'Gattaca' => 3.5 ,
'Matrix' => 3.0 ,
'American History X' => 3.5 ,
'Back to the future' => 2.5
} ,
'Lisa' => {
'The Godfather' => 1.5 ,
'Gattaca' => 2.5 ,
'Matrix' => 1.5 ,
【文件预览】:
pearson-master
----LICENSE.txt(1KB)
----.ruby-version(11B)
----lib()
--------pearson.rb(3KB)
----Gemfile(55B)
----pearson.gemspec(566B)
----spec()
--------pearson_spec.rb(2KB)
--------spec_helper.rb(53B)
----.travis.yml(61B)
----README.md(2KB)
----Gemfile.lock(346B)
----.gitignore(15B)