causica.graph.evaluation_metrics¶
Module Contents¶
Functions¶
|
Evaluate the precision and recall of edge existence for two adjacency matrices. |
|
Evaluate the f1 score of edge existence for two adjacency matrices. |
|
Evaluate the precision and recall of edge orientation for two adjacency matrices. |
|
Evaluate the f1 score of edge existence for two adjacency matrices. |
|
Calculate f1 score from precision and recall. |
|
Convert an adjacency matrix to a vector of length n(n-1)/2. |
- causica.graph.evaluation_metrics.adjacency_precision_recall(graph1: torch.Tensor, graph2: torch.Tensor) tuple[torch.Tensor, torch.Tensor][source]¶
Evaluate the precision and recall of edge existence for two adjacency matrices.
- causica.graph.evaluation_metrics.adjacency_f1(graph1: torch.Tensor, graph2: torch.Tensor) torch.Tensor[source]¶
Evaluate the f1 score of edge existence for two adjacency matrices.
- causica.graph.evaluation_metrics.orientation_precision_recall(graph1: torch.Tensor, graph2: torch.Tensor) tuple[torch.Tensor, torch.Tensor][source]¶
Evaluate the precision and recall of edge orientation for two adjacency matrices.
- causica.graph.evaluation_metrics.orientation_f1(graph1: torch.Tensor, graph2: torch.Tensor) torch.Tensor[source]¶
Evaluate the f1 score of edge existence for two adjacency matrices.