You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
384 B
19 lines
384 B
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}"
|