-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkx.exception.NetworkXError: The node ETS is not in the digraph. #4183
Comments
Hello @LeonTing1010, Can you please provide additional details, such as a reproducible code example and the AutoGluon version used? |
Getting the same error but for DeepAR model. Here are the logs: `Warning: path already exists! This predictor may overwrite an existing predictor! path="output_model_2"
|
@vamshik113 according to the log, you are saving the predictor to a directory that already contains a trained predictor. Can you please try removing the directory or providing a new |
@shchur Even if they are saving to an existing predictor location, shouldn't the logic work correctly without issue? Only way I'd foresee an error is if 1. The old predictor.pkl / trainer.pkl / learner.pkl isn't overwritten, 2. The new model files do not overwrite the old ones, 3. We have logic that looks for the existance of files to determine what to do next, which introduces bugs when re-using the same save location as an old run. |
@shchur Yes, figured it out that the issue is due to the existing directory with already trained predictors. After deleting, the issue was resolved. |
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.
The text was updated successfully, but these errors were encountered: