class Cadmium::Glove::Workers::TrainingWorker

Defined in:

glove/workers/training_worker.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(calling_class : Model, indices : Array(Tuple(Int32, Int32))) #

Creates a new TrainingWorker instance


[View source]

Instance Method Detail

def alpha(*args, **options) #

[View source]
def alpha(*args, **options, &) #

[View source]
def apply_weights(w1, w2, loss, word_a_norm, word_b_norm) #

[View source]
def calc_weights(w1, w2, prediction = 0.0, word_a_norm = 0.0, word_b_norm = 0.0) #

[View source]
def cooc_matrix(*args, **options) #

[View source]
def cooc_matrix(*args, **options, &) #

[View source]
def indices : Array(Tuple(Int32, Int32)) #

[View source]
def learning_rate(*args, **options) #

[View source]
def learning_rate(*args, **options, &) #

[View source]
def max_count(*args, **options) #

[View source]
def max_count(*args, **options, &) #

[View source]
def run #

[View source]
def threads(*args, **options) #

[View source]
def threads(*args, **options, &) #

[View source]
def word_biases : Array(Float64) #

[View source]
def word_vec : Apatite::Matrix(Float64) #

[View source]
def work(slice) #

[View source]