Skip to content

networkx.exception.NetworkXError: The node ETS is not in the digraph. #4183

@LeonTing1010

Description

@LeonTing1010

Traceback (most recent call last):
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/classes/digraph.py", line 927, in predecessors
return iter(self._pred[n])
KeyError: 'ETS'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/leo/web3/LLM/langchain/mlts/auto_gluon.py", line 32, in
forecast_entry_df = predictor.predict(train_data)
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/predictor.py", line 845, in predict
predictions = self._learner.predict(
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/learner.py", line 185, in predict
return self.load_trainer().predict(
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/trainer/abstract_trainer.py", line 892, in predict
model_pred_dict = self.get_model_pred_dict(
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/trainer/abstract_trainer.py", line 1199, in get_model_pred_dict
pred_time_dict_total = self._get_total_pred_time_from_marginal(pred_time_dict_marginal)
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/trainer/abstract_trainer.py", line 1211, in _get_total_pred_time_from_marginal
for base_model in self.get_minimum_model_set(model_name):
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/autogluon/timeseries/trainer/abstract_trainer.py", line 174, in get_minimum_model_set
minimum_model_set = list(nx.bfs_tree(self.model_graph, model, reverse=True))
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/algorithms/traversal/breadth_first_search.py", line 235, in bfs_tree
T.add_edges_from(edges_gen)
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/classes/digraph.py", line 768, in add_edges_from
for e in ebunch_to_add:
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/algorithms/traversal/breadth_first_search.py", line 170, in bfs_edges
yield from generic_bfs_edges(G, source, successors, depth_limit, sort_neighbors)
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/algorithms/traversal/breadth_first_search.py", line 77, in generic_bfs_edges
queue = deque([(source, depth_limit, neighbors(source))])
File "/Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages/networkx/classes/digraph.py", line 929, in predecessors
raise NetworkXError(f"The node {n} is not in the digraph.") from err
networkx.exception.NetworkXError: The node ETS is not in the digraph.

Metadata

Metadata

Assignees

Labels

Needs TriageIssue requires TriagebugSomething isn't workingmodule: timeseriesrelated to the timeseries modulepriority: 0Maximum priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions