blob: 9cf235bafcf13036599520aac2c3db8859f98727 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'Sample'
require 'Estimators'
require 'EstimationResults'
samples = Sample.parseFromFile(ARGV[0])
est = WINXEstimator.new(ARGV[1].to_i)
results = EstimationResults.new(est, samples)
results.setMaxError(10.0)
relErrors = results.getRelativeErrors
relErrors.keys.sort.each do |x|
puts "#{x} #{relErrors[x]}"
end
#puts "RMSE: #{results.getRootMeanSquareErrorRelative}"
|