-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am currently exploring the calculation of GBD and tried running the sample code provided in the GBD examples (https://rpubs.com/rsoren/mrbrt_examples_gbd2020) using R version 4.1. However, I encountered the following error when executing the code:
mod1$fit_model(inner_print_level = 5L, inner_max_iter = 1000L)
Error in py_call_impl(callable, call_args$unnamed, call_args$named) :
TypeError: LimeTr.init() got an unexpected keyword argument 'S'
Run reticulate::py_last_error() for details.
reticulate::py_last_error()
── Python Exception Message ─────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
File "/home/shisu/.local/lib/python3.10/site-packages/mrtool/core/model.py", line 272, in fit_model
self.lt = LimeTr(n, k_beta, k_gamma,
TypeError: LimeTr.init() got an unexpected keyword argument 'S'
── R Traceback ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
▆
- └─mod1$fit_model(inner_print_level = 5L, inner_max_iter = 1000L)
- └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)
Seereticulate::py_last_error()$r_trace$full_callfor more details.
reticulate::py_last_error()$r_trace$full_call
[[1]]
mod1$fit_model(inner_print_level = 5L, inner_max_iter = 1000L)
[[2]]
py_call_impl(callable, call_args$unnamed, call_args$named)
Could please help me understand why this error is occurring and suggest how I might resolve it?
Thank you in advance for your assistance!