0

在 R 中尝试使用 text2vec 包进行词嵌入时,抛出以下错误

embd_dim <- 5

glove_event <- GlobalVectors$new(rank = embd_dim, x_max = 10,learning_rate = 0.01, alpha = 0.95, lambda = 0.005)

wrd_embd_event <- glove_event$fit_transform(tcm_event, n_iter = 200, convergence_tol = 0.001)

Error in glove_event$fit_transform(tcm_event, n_iter = 200, convergence_tol = 0.001) : 
  Cost is too big, probably something goes wrong... try smaller learning rate

较小的学习率没有帮助。skip_grams_window中不同值ctreate_tcm()和不同等级值的实验结果相似glove_event()

我对这个错误的来源一无所知。

4

0 回答 0