Class: Coletivo::Similarity::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/coletivo/similarity/engine.rb

Class Method Summary collapse

Class Method Details

.similarity_between(one, other, preferences, options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/coletivo/similarity/engine.rb', line 4

def self.similarity_between(one, other, preferences, options = {})
  strategy = load_strategy options[:strategy]
  strategy.train_with(preferences)

  strategy.similarity_between(one, other)
end