Class: Coletivo::Similarity::BaseStrategy
- Inherits:
-
Object
- Object
- Coletivo::Similarity::BaseStrategy
show all
- Defined in:
- lib/coletivo/similarity/base_strategy.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#preferences ⇒ Object
Returns the value of attribute preferences.
4
5
6
|
# File 'lib/coletivo/similarity/base_strategy.rb', line 4
def preferences
@preferences
end
|
Instance Method Details
#similarity_between(one, other) ⇒ Object
6
7
8
|
# File 'lib/coletivo/similarity/base_strategy.rb', line 6
def similarity_between(one, other)
raise "The #similarity_between was not implemented in #{self.class}"
end
|
#train_with(people_preferences) ⇒ Object
10
11
12
|
# File 'lib/coletivo/similarity/base_strategy.rb', line 10
def train_with(people_preferences)
@preferences = people_preferences
end
|