Skip to content

MR-BRT calculation #26

@ssshi999

Description

@ssshi999

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 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────

  1. └─mod1$fit_model(inner_print_level = 5L, inner_max_iter = 1000L)
  2. └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)
    See reticulate::py_last_error()$r_trace$full_call for 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions