Skip to content

Commit

Permalink
Annotating napari classes
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaUlicna committed Aug 30, 2023
1 parent 9fc0321 commit 2bed123
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grace/napari/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def cut_graph_using_mask(
mask : array
A binary mask to filter points and edges in the graph.
update_graph : bool, (default: True)
Update edge attributes in place.
Update node & edge attributes in place.
Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions grace/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def confusion_matrix_metric(
edge_pred: torch.Tensor,
node_true: torch.Tensor,
edge_true: torch.Tensor,
node_classes: List[str] = ["TP", "TN"],
edge_classes: List[str] = ["TP", "TN"],
node_classes: List[str] = ["TN_node", "TP_node"],
edge_classes: List[str] = ["TN_edge", "TP_edge"],
figsize: Tuple[int] = (6, 5),
) -> Tuple[plt.Figure]:
node_pred_labels = node_pred.argmax(dim=-1)
Expand Down

0 comments on commit 2bed123

Please sign in to comment.