【文件属性】:
文件名称:eps:Ruby的机器学习
文件大小:617KB
文件格式:ZIP
更新时间:2021-02-03 01:34:01
machine-learning automl rubyml MachinelearningRuby
每股收益
Ruby的机器学习
快速轻松地建立预测模型
服务用Ruby,Python,R等构建的模型
查看以获取更多有关Rails机器学习的信息
安装
将此行添加到您的应用程序的Gemfile中:
gem 'eps'
在Mac上,还要安装OpenMP:
brew install libomp
入门
建立模型
data = [
{ bedrooms : 1 , bathrooms : 1 , price : 100000 } ,
{ bedrooms : 2 , bathrooms : 1 , price : 125000 } ,
{ bedrooms : 2 , bathrooms : 2 , price : 135000 } ,
{ bedrooms : 3 , bathrooms : 2 , price : 162000 }
]
model = Eps :: Model . new ( data , target : :price )
puts model . summary
做出预测
model . predict ( bedrooms : 2 , bath
【文件预览】:
eps-master
----.gitignore(80B)
----gemfiles()
--------gslr.gemfile(152B)
--------gsl.gemfile(139B)
----CHANGELOG.md(1KB)
----LICENSE.txt(1KB)
----.github()
--------workflows()
----README.md(13KB)
----lib()
--------eps()
--------eps.rb(1KB)
----Gemfile(118B)
----eps.gemspec(636B)
----Rakefile(573B)
----test()
--------model_test.rb(3KB)
--------linear_regression_test.rb(15KB)
--------support()
--------metrics_test.rb(1KB)
--------test_helper.rb(871B)
--------data_frame_test.rb(1KB)
--------lightgbm_test.rb(8KB)
--------naive_bayes_test.rb(4KB)