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

Version Path
tomoto-0.4.1-x86_64-linux lib/tomoto/mglda.rb
tomoto-0.4.1-x86_64-darwin lib/tomoto/mglda.rb
tomoto-0.4.1-arm64-darwin lib/tomoto/mglda.rb
tomoto-0.4.1-aarch64-linux lib/tomoto/mglda.rb
tomoto-0.4.1 lib/tomoto/mglda.rb
tomoto-0.4.0-x86_64-linux lib/tomoto/mglda.rb
tomoto-0.4.0-x86_64-darwin lib/tomoto/mglda.rb
tomoto-0.4.0-arm64-darwin lib/tomoto/mglda.rb
tomoto-0.4.0-aarch64-linux lib/tomoto/mglda.rb
tomoto-0.4.0 lib/tomoto/mglda.rb
tomoto-0.3.3-x86_64-linux lib/tomoto/mglda.rb
tomoto-0.3.3-x86_64-darwin lib/tomoto/mglda.rb
tomoto-0.3.3-arm64-darwin lib/tomoto/mglda.rb
tomoto-0.3.3 lib/tomoto/mglda.rb
tomoto-0.3.2-x86_64-linux lib/tomoto/mglda.rb
tomoto-0.3.2-x86_64-darwin lib/tomoto/mglda.rb
tomoto-0.3.2-arm64-darwin lib/tomoto/mglda.rb
tomoto-0.3.2 lib/tomoto/mglda.rb
tomoto-0.3.1-x86_64-linux lib/tomoto/mglda.rb
tomoto-0.3.1-x86_64-darwin lib/tomoto/mglda.rb