Skip to content

Commit 37bd591

Browse files
committed
Small imports update.
1 parent eca5646 commit 37bd591

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

torchsom/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
from .decay import DECAY_FUNCTIONS
33
from .distances import DISTANCE_FUNCTIONS
44
from .neighborhood import NEIGHBORHOOD_FUNCTIONS
5+
from .plotting import SOMVisualizer, VisualizationConfig
6+
from .utils import *
57

68
__version__ = "0.1.0"
79

8-
# Define what should be imported when using 'from TorchSOM import *'
10+
# Define what should be imported when using 'from torchsom import *'
911
__all__ = [
1012
"TorchSOM",
1113
"DISTANCE_FUNCTIONS",
1214
"DECAY_FUNCTIONS",
1315
"NEIGHBORHOOD_FUNCTIONS",
16+
"SOMVisualizer",
17+
"VisualizationConfig",
18+
# No need to list utils methods here, they are already imported
1419
]
140 Bytes
Binary file not shown.
-133 Bytes
Binary file not shown.

torchsom/plotting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from dataclasses import dataclass, field
22
from pathlib import Path
3-
from typing import Any, Dict, List, Optional, Tuple, Union
3+
from typing import Dict, List, Optional, Tuple, Union
44

5-
import matplotlib.cm as cm
6-
import matplotlib.colors as mcolors
75
import matplotlib.pyplot as plt
86
import numpy as np
97
import torch

0 commit comments

Comments
 (0)