generated from csinva/cookiecutter-ml-research
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello, I am using the code:
import numpy as np
from imodelsx import explain_module_sasc
a toy module that responds to the length of a string
mod = lambda str_list: np.array([len(s) for s in str_list])
a toy dataset where the longest strings are animals
text_str_list = ["red", "blue", "x", "1", "2", "hippopotamus", "elephant", "rhinoceros"]
explanation_dict = explain_module_sasc(
text_str_list,
mod,
ngrams=1,
)
print(explanation_dict)
Errors will be encountered:
name 'openai' is not defined
How to solve this problem. thank you.
Metadata
Metadata
Assignees
Labels
No labels