forked from saulabs/trueskill
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
explicitly load source files and make seperator os independent
- Loading branch information
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,7 @@ | |||
# -*- encoding : utf-8 -*- | # -*- encoding : utf-8 -*- | ||
Dir.glob("#{File.dirname(__FILE__)}/gauss/**/*.rb").each do |src| | %w( | ||
require src | distribution | ||
truncated_correction | |||
).each do |name| | |||
require File.expand_path(File.join(File.dirname(__FILE__), "gauss", "#{name}.rb")) | |||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,42 @@ | |||
# -*- encoding : utf-8 -*- | # -*- encoding : utf-8 -*- | ||
require 'pp' | require 'pp' | ||
|
|
||
require "#{File.dirname(__FILE__)}/gauss.rb" | require File.expand_path(File.join(File.dirname(__FILE__), "gauss.rb")) | ||
|
|
||
Dir.glob("#{File.dirname(__FILE__)}/trueskill/**/*.rb").sort.each do |src| | %w( | ||
require src | base greater_than | ||
likelihood | |||
prior | |||
weighted_sum | |||
within | |||
).each do |name| | |||
require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "factors", "#{name}.rb")) | |||
end | |||
|
|||
%w( | |||
base | |||
iterated_team_performances | |||
performances_to_team_performances | |||
prior_to_skills | |||
skills_to_performances | |||
team_difference_comparision | |||
team_performance_differences | |||
).each do |name| | |||
require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "layers", "#{name}.rb")) | |||
end | |||
|
|||
%w( | |||
base | |||
loop | |||
sequence | |||
step | |||
).each do |name| | |||
require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "schedules", "#{name}.rb")) | |||
end | |||
|
|||
%w( | |||
rating | |||
factor_graph | |||
).each do |name| | |||
require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "#{name}.rb")) | |||
end | end |