Sha256: 69a8eb95a125f3c46e977aba92f65efa4e481de181bfceac16c65d8f2b52f2d0

Contents?: true

Size: 569 Bytes

Versions: 41

Compression:

Stored size: 569 Bytes

Contents

module Tomoto
  class DT
    def self.new(tw: :one, min_cf: 0, min_df: 0, rm_top: 0, k: 1, t: 1, alpha_var: 0.1, eta_var: 0.1, phi_var: 0.1, lr_a: 0.01, lr_b: 0.1, lr_c: 0.55) #, seed: nil)
      model = _new(to_tw(tw), k, t, alpha_var, eta_var, phi_var, lr_a, lr_b, lr_c)
      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, timepoint: 0)
      _add_doc(prepare_doc(doc), timepoint)
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
tomoto-0.5.1-x86_64-linux lib/tomoto/dt.rb
tomoto-0.5.1-x86_64-darwin lib/tomoto/dt.rb
tomoto-0.5.1-arm64-darwin lib/tomoto/dt.rb
tomoto-0.5.1-aarch64-linux lib/tomoto/dt.rb
tomoto-0.5.1 lib/tomoto/dt.rb
tomoto-0.5.0-x86_64-linux lib/tomoto/dt.rb
tomoto-0.5.0-x86_64-darwin lib/tomoto/dt.rb
tomoto-0.5.0-arm64-darwin lib/tomoto/dt.rb
tomoto-0.5.0-aarch64-linux lib/tomoto/dt.rb
tomoto-0.5.0 lib/tomoto/dt.rb
tomoto-0.4.1-x86_64-linux lib/tomoto/dt.rb
tomoto-0.4.1-x86_64-darwin lib/tomoto/dt.rb
tomoto-0.4.1-arm64-darwin lib/tomoto/dt.rb
tomoto-0.4.1-aarch64-linux lib/tomoto/dt.rb
tomoto-0.4.1 lib/tomoto/dt.rb
tomoto-0.4.0-x86_64-linux lib/tomoto/dt.rb
tomoto-0.4.0-x86_64-darwin lib/tomoto/dt.rb
tomoto-0.4.0-arm64-darwin lib/tomoto/dt.rb
tomoto-0.4.0-aarch64-linux lib/tomoto/dt.rb
tomoto-0.4.0 lib/tomoto/dt.rb