Closed bachl closed 1 year ago
@bachl Thank you for reporting the bug. It should have been fixed.
## standard testing case from Manning
require(grafzahl)
txt <- c(d1 = "Chinese Beijing Chinese",
d2 = "Chinese Chinese Shanghai",
d3 = "Chinese",
d4 = "Tokyo Japan Chinese",
d5 = "Chinese Chinese Chinese Tokyo Japan")
y <- factor(c("Y", "Y", "Y", "N", "Y"), ordered = TRUE)
model <- grafzahl(x = txt, y = y, train_size = 1, num_train_epochs = 1, model_name = "bert-base-cased", cuda = FALSE)
predict(model, cuda = FALSE)
Hi @chainsawriot First of all, thank you for your work and another great package! After having read the CCR software announcement, I wanted to check out grafzahl. In particular, I wanted to see whether using it on my notebook without a CUDA GPU would make any sense at all. The setup process worked smoothly. I then replicated the Theocharis et al. (2020) example. Model training worked fine (although it needed 11.5h, but that was to be expected). However, the predict() step did not work. Input:
Error:
I share a reproducible example below, with a nonsensical reduction of the training set to make it finish within a sensible timeframe. The error message remains the same.
Thanks again!