Sha256: 13aa77a78707667885af6baea6ec664c42e5ca00910f7e7cfc379e51292dbc5a
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'tf-idf' require 'spec' require 'spec/autorun' require 'pp' Spec::Runner.configure do |config| end def get_expected_idf(num_docs_total, num_docs_term) Math.log((1 + num_docs_total).to_f / (1 + num_docs_term)) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tf-idf-1.0.0 | spec/spec_helper.rb |