Class: Saulabs::TrueSkill::Layers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/saulabs/trueskill/layers/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
14
# File 'lib/saulabs/trueskill/layers/base.rb', line 9

def initialize(graph)
  @graph = graph
  @factors = []
  @output = []
  @input = []
end

Instance Attribute Details

#factorsObject

Returns the value of attribute factors.



7
8
9
# File 'lib/saulabs/trueskill/layers/base.rb', line 7

def factors
  @factors
end

#graphObject

Returns the value of attribute graph.



7
8
9
# File 'lib/saulabs/trueskill/layers/base.rb', line 7

def graph
  @graph
end

#inputObject

Returns the value of attribute input.



7
8
9
# File 'lib/saulabs/trueskill/layers/base.rb', line 7

def input
  @input
end

#outputObject

Returns the value of attribute output.



7
8
9
# File 'lib/saulabs/trueskill/layers/base.rb', line 7

def output
  @output
end

Instance Method Details

#buildObject



16
17
18
# File 'lib/saulabs/trueskill/layers/base.rb', line 16

def build
  raise "Abstract method Layers::Base#build called"
end

#posterior_scheduleObject



24
25
26
# File 'lib/saulabs/trueskill/layers/base.rb', line 24

def posterior_schedule
  nil
end

#prior_scheduleObject



20
21
22
# File 'lib/saulabs/trueskill/layers/base.rb', line 20

def prior_schedule
  nil
end