Sha256: 4e00ab714162cbc545777bd6870db55ba975280694ea10da4635da93cf0817d0

Contents?: true

Size: 499 Bytes

Versions: 31

Compression:

Stored size: 499 Bytes

Contents

module Tomoto
  class PLDA
    def self.new(tw: :one, min_cf: 0, min_df: 0, rm_top: 0, latent_topics: 1, alpha: 0.1, eta: 0.01, seed: nil)
      model = _new(to_tw(tw), latent_topics, alpha, eta, seed || -1)
      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, labels: [])
      _add_doc(prepare_doc(doc), labels)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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