Skip to content

Commit

Permalink
code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuwelack committed Sep 19, 2023
1 parent a52219a commit d93a645
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions renumics/spotlight/layouts/model_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def compare_classification(
Returns:
Layout: _description_
"""

# first column: table + issues
metrics = split(
[
Expand Down Expand Up @@ -118,7 +118,7 @@ def compare_classification(
)
column2_list.append(row3)

column2:Union[Tab, Split]
column2: Union[Tab, Split]

if len(column2_list) == 1:
column2 = column2_list[0]
Expand Down
7 changes: 5 additions & 2 deletions renumics/spotlight/layouts/model_debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from renumics.spotlight import layout
from renumics.spotlight.layout import (
Layout,
Tab,
Split,
lenses,
table,
similaritymap,
Expand All @@ -12,11 +14,10 @@
confusion_matrix,
histogram,
)
from typing import Optional
from typing import Optional, Union
from renumics.spotlight import Audio, Image



def debug_classification(
label: str = "label",
prediction: str = "prediction",
Expand Down Expand Up @@ -82,6 +83,8 @@ def debug_classification(
)
column2_list.append(row3)

column2: Union[Tab, Split]

if len(column2_list) == 1:
column2 = column2_list[0]
elif len(column2_list) == 2:
Expand Down

0 comments on commit d93a645

Please sign in to comment.