-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
There seems to be a bug in the follow example script:
networkTMLE/example_usage.py
I get the following error when running the script:
Traceback (most recent call last):
File "./networkTMLE/example_usage.py", line 79, in <module>
tmle.define_threshold(variable='diet', threshold=3,
TypeError: define_threshold() got an unexpected keyword argument 'definition'
The error message indicates the issue is with line 79. It indicates the argument 'definition' is not defined for define_threshold function.
publications-code/networkTMLE/example_usage.py
Lines 79 to 80 in 4ef67e7
| tmle.define_threshold(variable='diet', threshold=3, | |
| definition='sum') # Defining threshold measure of at least 3 contacts with a diet |
The define_threshold function seems to be part of the mossspider package and I found the code block linked below associated with that function and it is indeed missing the "definition" argument.
Metadata
Metadata
Assignees
Labels
No labels