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
of train_eval.ipynb, I'm stumbling upon an R package error:
model._eval(ground_trues, metric="SHD-C")
17 _SED = model._eval(ground_trues, metric="CSD")
18 _SID = model._eval(ground_trues, metric="SID")
File ~/SageMaker/DOSEC/notebooks/research_pretraining/OCDB/model/BaseModel.py:33, in BaseModel._eval(self, ground_trues, metric)
31 return SID(ground_trues, self.DAG)
32 elif metric == "SHD-C":
---> 33 return SHD_CPDAG(ground_trues, self.DAG)
34 elif metric == "CED":
35 return CED(ground_trues, self.DAG, k=ground_trues.shape[0])
File ~/SageMaker/DOSEC/notebooks/research_pretraining/OCDB/metrics/Metrics.py:116, in SHD_CPDAG(G_true, G_pred)
115 def SHD_CPDAG(G_true, G_pred):
--> 116 return cm.SHD_CPDAG(G_true, G_pred)
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/cdt/metrics.py:185, in SHD_CPDAG(target, pred)
181 true_labels = retrieve_adjacency_matrix(target)
182 predictions = retrieve_adjacency_matrix(pred, target.nodes()
183 if isinstance(target, nx.DiGraph) else None)
--> 185 true_labels = get_CPDAG(true_labels)
186 predictions = get_CPDAG(predictions)
188 return SHD(true_labels, predictions, False)
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/cdt/metrics.py:131, in get_CPDAG(dag)
116 R"""Compute the completed partially directed acyclic graph (CPDAG) of
117 a given DAG
118
(...)
128
129 """
130 if not RPackages.pcalg:
--> 131 raise ImportError("pcalg R package is not available. Please check your installation.")
133 dag = retrieve_adjacency_matrix(dag)
135 base_dir = Path('{0!s}/cdt_CPDAG_{1!s}'.format(gettempdir(), uuid.uuid4()))
ImportError: pcalg R package is not available. Please check your installation.
Which triggered a question ro me as why does this repo need a package that was added to R in early september 2024 (pcalg) whereas the paper came out on arxiv in June ? Do we really need this package in order to run the script ? If we need R, could you detail your overall installation and R version ?
Also wget and torch_geometric seems to be mandatory dependecies (I got errors or missing packages)
Hi Thibault, I noticed while I was trying to run your code: train_eval.ipynb that:
from DCGL.model import DAG_GNN
in train_eval.ipynb should be insteadfrom DCGL.model import DAG_GCN
, which causes an Import failureMoreoever,
While executing the code for the Event Sequence and their associated model, in particular lines:
of train_eval.ipynb, I'm stumbling upon an R package error:
Which triggered a question ro me as why does this repo need a package that was added to R in early september 2024 (pcalg) whereas the paper came out on arxiv in June ? Do we really need this package in order to run the script ? If we need R, could you detail your overall installation and R version ?
Also wget and torch_geometric seems to be mandatory dependecies (I got errors or missing packages)
_My version:
Python 3.10.14
gcastle==1.0.3
cdt==0.6.0
wget==3.2
torch==2.4.1
torch-geometric==2.6.0
Merci pour le repo,
Best,
Hugo
The text was updated successfully, but these errors were encountered: