Skip to content

Commit

Permalink
fix cluster import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomitani committed Dec 17, 2021
1 parent 223c024 commit 2cbd596
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ simpsom/*pyc
simpsom/temp*
simpsom/*BAK

long.md

tmp
benchmark
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- [![Build Status](https://travis-ci.org/fcomitani/simpsom.svg?branch=main)](https://travis-ci.org/fcomitani/simpsom)
-->

## Version 2.0.0
## Version 2.0.1

SimpSOM is a lightweight implementation of Kohonen Self-Organizing Maps
(SOM) for Python 3, useful for unsupervised learning,
Expand Down
33 changes: 33 additions & 0 deletions long_desc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SimpSOM (Simple Self-Organizing Maps)

## Version 2.0.0

SimpSOM is a lightweight implementation of Kohonen Self-Organizing Maps
(SOM) for Python 3, useful for unsupervised learning,
clustering and dimensionality reduction.

To install this package, clone this repository and install it with
`python setup.py install`. Alternatively you can download it from PyPI,
to retrieve it just type `pip install simpsom`, but make sure the
version you need is available on the database.

It allows you to build and train SOM on your dataset, save/load the trained
network weights, and display or print graphs of the network with
selected features. The function `run_colors_example()` will run a toy
model, where a number of colors will be mapped from the 3D RGB space to
the 2D network map and clustered according to their similarity in the
origin space.

## What\'s New

- Class and function names have been updated to adhere to PEP8.
- Batch training has been added and is now the default algorithm.
- A light parallelization is now possible with RAPIDS.

## Version compatibility

This version introduces a number of changes, while attempting to maintain
the original philosophy of this project: a SOM library easy to understand and customize.
Functions and classes names have been changed to improve readability.
If you are migrating from an older version (<=1.3.4), please make sure to check the API first!

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
here = path.abspath(path.dirname(__file__))
version = open("simpsom/_version.py").readlines()[-1].split()[-1].strip("\"'")

with open(path.join(here, 'long.md'), encoding='utf-8') as f:
with open(path.join(here, 'long_desc.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
Expand Down
2 changes: 1 addition & 1 deletion simpsom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
SimpSOM (Simple Self-Organizing Maps) v1.3.5
SimpSOM (Simple Self-Organizing Maps)
F. Comitani @2017-2021
A lightweight python library for Kohonen Self-Organizing Maps (SOM).
Expand Down
2 changes: 1 addition & 1 deletion simpsom/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information."""

__version__ = "2.0.0"
__version__ = "2.0.1"
10 changes: 10 additions & 0 deletions simpsom/cluster/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
SimpSOM (Simple Self-Organizing Maps)
F. Comitani @2017-2021
A lightweight python library for Kohonen Self-Organizing Maps (SOM).
"""

if __name__ == "__main__":

pass

0 comments on commit 2cbd596

Please sign in to comment.