You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: