-
Notifications
You must be signed in to change notification settings - Fork 13
Description
The code below
gpt_model = "gpt-4-turbo-2024-04-09"
graph_dec = t2ebm.describe_graph(gpt_model, ebm, 0)
Results in an Attribute Error below. The version of t2ebm is '0.1.2'. Thanks for the project.
AttributeError Traceback (most recent call last)
Cell In[20], line 6
3 gpt_model = "gpt-4-turbo-2024-04-09"
5 # Describe feature 0
----> 6 graph_dec = t2ebm.describe_graph(gpt_model, ebm, 0)
File ~/miniconda3/envs/explainable_ai/lib/python3.13/site-packages/t2ebm/functions.py:71, in describe_graph(llm, ebm, feature_index, num_sentences, **kwargs)
56 """Ask the LLM to describe a graph. Uses chain-of-thought reasoning.
57
58 The function accepts additional keyword arguments that are passed to extract_graph, graph_to_text, and describe_graph_cot.
(...) 67 str: The description of the graph.
68 """
70 # llm setup
---> 71 llm = t2ebm.llm.setup(llm)
73 # extract the graph from the EBM
74 extract_kwargs = list(inspect.signature(extract_graph).parameters)
AttributeError: module 't2ebm' has no attribute 'llm'