Sha256: 486bff9a7b603d6fcef91f85317045b13a5d1f48e4d7f694ed8f370372afeacc
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] t.warning = false end task default: :test task :benchmark do require "benchmark" require "eps" require "gsl" if ENV["GSL"] data = [] 10000.times do row = {} 30.times do |i| row[:"x#{i}"] = rand(100) end row[:y] = rand(100) data << row end puts "Starting benchmark..." time = Benchmark.realtime do Eps::Regressor.new(data, target: :y) end p time.round(1) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eps-0.1.1 | Rakefile |