OHDSI / DeepPatientLevelPrediction

An R package for performing patient level prediction using deep learning in an observational database in the OMOP Common Data Model.
https://ohdsi.github.io/DeepPatientLevelPrediction
10 stars 4 forks source link

Package failing weekly Hades R check #82

Closed egillax closed 1 year ago

egillax commented 1 year ago

Error:

Error in `losses[1:(globalMinimum - 5)]`: only 0's may be mixed with negative subscripts
Backtrace:
    ▆
 1. └─DeepPatientLevelPrediction::lrFinder(...) at test-LRFinder.R:27:2
 2.   ├─torch::torch_diff(...)
 3.   │ └─base::mget(x = c("self", "n", "dim", "prepend", "append"))
 4.   └─torch::torch_tensor(losses[1:(globalMinimum - 5)])
 5.     └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
 6.       └─methods$initialize(NULL, NULL, ...)
 7.         └─torch:::torch_tensor_cpp(...)