Skip to content

Commit 3aa016b

Browse files
committed
feat: proposed clustering method and enhance visualizations.
- Updated the pre-commit configuration to enforce stricter type checking with MyPy by adding the '--ignore-missing-imports' and '--strict' flags. - Modified the pyproject.toml to include new dependencies for HDBSCAN and scikit-learn, enhancing clustering functionality. - Introduced a new dataset 'blobs_300_4_3_1.0.csv' for clustering experiments, providing a synthetic dataset for testing. - Added a new Jupyter notebook 'clustering.ipynb' for clustering analysis using Self-Organizing Maps (SOM), demonstrating various clustering methods and visualizations. - Implemented clustering algorithms in 'torchsom/utils/clustering.py' and integrated them into the SOM class, allowing for flexible clustering options. - Developed a 'ClusteringVisualizer' class in 'torchsom/visualization/clustering.py' to facilitate the visualization of clustering results, including elbow analysis and silhouette scores. - Updated existing visualization methods in the SOMVisualizer to incorporate clustering visualizations, improving the overall user experience.
1 parent 256ad12 commit 3aa016b

38 files changed

+2287
-1030
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ repos:
4444
hooks:
4545
- id: mypy
4646
name: mypy
47-
args: ['--config-file', 'pyproject.toml']
47+
args: ['--config-file', 'pyproject.toml', '--ignore-missing-imports', '--strict']
4848
# additional_dependencies: [torch, numpy, pydantic, types-requests]
49-
# args: [--ignore-missing-imports, --strict]
5049

5150
- repo: https://github.com/PyCQA/bandit
5251
rev: 1.7.5

data/blobs_300_4_3_1.0.csv

Lines changed: 301 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)