Sha256: b735fd56678a0f835350e1c85e4b99d90bf1116617d08a86cba5a98f3ff2a961
Contents?: true
Size: 606 Bytes
Versions: 31
Compression:
Stored size: 606 Bytes
Contents
module Tomoto class MGLDA def self.new(tw: :one, min_cf: 0, min_df: 0, rm_top: 0, k_g: 1, k_l: 1, t: 3, alpha_g: 0.1, alpha_l: 0.1, alpha_mg: 0.1, alpha_ml: 0.1, eta_g: 0.01) #, eta_l: 0.01, gamma: 0.1, seed: nil) model = _new(to_tw(tw), k_g, k_l, t, alpha_g, alpha_l, alpha_mg, alpha_ml, eta_g) model.instance_variable_set(:@min_cf, min_cf) model.instance_variable_set(:@min_df, min_df) model.instance_variable_set(:@rm_top, rm_top) init_params(model, binding) end def add_doc(doc, delimiter: ".") _add_doc(prepare_doc(doc), delimiter) end end end
Version data entries
31 entries across 31 versions & 1 rubygems