Class: Saulabs::TrueSkill::Layers::SkillsToPerformances
- Defined in:
- lib/saulabs/trueskill/layers/skills_to_performances.rb
Instance Attribute Summary
Attributes inherited from Base
#factors, #graph, #input, #output
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Saulabs::TrueSkill::Layers::Base
Instance Method Details
#build ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/saulabs/trueskill/layers/skills_to_performances.rb', line 10 def build @input.each do |team| team_performances = [] team.each do || variable = TrueSkill::Rating.new(0.0, 0.0, .activity, .tau) @factors << Factors::Likelihood.new(@graph.beta_squared, variable, ) team_performances << variable end @output << team_performances end end |