Sha256: 911cb0d4f1722db5cb5466960eedeb1671bf9e86943764c977c09c46922495f9

Contents?: true

Size: 594 Bytes

Versions: 28

Compression:

Stored size: 594 Bytes

Contents

module Tomoto
  class GDMR
    def self.new(tw: :one, min_cf: 0, min_df: 0, rm_top: 0, k: 1, degrees: [], alpha: 0.1, eta: 0.01, sigma: 1.0, sigma0: 3.0, alpha_epsilon: 1e-10, seed: nil)
      model = _new(to_tw(tw), k, degrees, alpha, sigma, sigma0, eta, alpha_epsilon, 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, numeric_metadata: [])
      _add_doc(prepare_doc(doc), numeric_metadata)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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