Skip to content

Releases: erdogant/clustimage

v1.5.10

02 Dec 15:10
Compare
Choose a tag to compare
  • sklearn changed into scikit-learn in both requirements and setup file.

v1.5.9

09 Jul 20:29
Compare
Choose a tag to compare
  • Added check for whether whash-haar is power of 2

v1.5.8

09 Jul 19:59
Compare
Choose a tag to compare
  • Added crop-resistant-hash method

v1.5.7

09 Jul 16:26
Compare
Choose a tag to compare
  • added plt.show and plt.draw in the scatter function to prevent that the figures suddenly disappear.

v1.5.6

09 Jul 16:14
Compare
Choose a tag to compare
  • Updated sample colors when using the find functionality. The class colors now match with other scatter plots.

v1.5.5

01 Jul 14:34
Compare
Choose a tag to compare
  • added ouput labels for the find functionality

v1.5.4

01 Jul 14:01
Compare
Choose a tag to compare
  • fix for setting temp directory.

v1.5.3

29 Jun 17:47
Compare
Choose a tag to compare
  • Save and load also stores models
  • Saving without filepath stores the save file to the systems/clustimage/ default temp directory

v1.5.2

09 Jun 14:24
Compare
Choose a tag to compare
  • Added functionality to read pandas dataframe as input matrix and use the index names a filenames.
from clustimage import Clustimage
import pandas as pd
import numpy as np

# Initialize
cl = Clustimage()

# Import data
Xraw = cl.import_example(data='mnist')

print(Xraw)
# array([[ 0.,  0.,  5., ...,  0.,  0.,  0.],
#        [ 0.,  0.,  0., ..., 10.,  0.,  0.],
#        [ 0.,  0.,  0., ..., 16.,  9.,  0.],
#        ...,
#        [ 0.,  0.,  1., ...,  6.,  0.,  0.],
#        [ 0.,  0.,  2., ..., 12.,  0.,  0.],
#        [ 0.,  0., 10., ..., 12.,  1.,  0.]])

filenames = list(map(lambda x: str(x) + '.png', np.arange(0, Xraw.shape[0])))
Xraw = pd.DataFrame(Xraw, index=filenames)

print(Xraw)
#            0    1     2     3     4     5   ...   58    59    60    61   62   63
# 0.png     0.0  0.0   5.0  13.0   9.0   1.0  ...  6.0  13.0  10.0   0.0  0.0  0.0
# 1.png     0.0  0.0   0.0  12.0  13.0   5.0  ...  0.0  11.0  16.0  10.0  0.0  0.0
# 2.png     0.0  0.0   0.0   4.0  15.0  12.0  ...  0.0   3.0  11.0  16.0  9.0  0.0
# 3.png     0.0  0.0   7.0  15.0  13.0   1.0  ...  7.0  13.0  13.0   9.0  0.0  0.0
# 4.png     0.0  0.0   0.0   1.0  11.0   0.0  ...  0.0   2.0  16.0   4.0  0.0  0.0
#       ...  ...   ...   ...   ...   ...  ...  ...   ...   ...   ...  ...  ...
# 1792.png  0.0  0.0   4.0  10.0  13.0   6.0  ...  2.0  14.0  15.0   9.0  0.0  0.0
# 1793.png  0.0  0.0   6.0  16.0  13.0  11.0  ...  6.0  16.0  14.0   6.0  0.0  0.0
# 1794.png  0.0  0.0   1.0  11.0  15.0   1.0  ...  2.0   9.0  13.0   6.0  0.0  0.0
# 1795.png  0.0  0.0   2.0  10.0   7.0   0.0  ...  5.0  12.0  16.0  12.0  0.0  0.0
# 1796.png  0.0  0.0  10.0  14.0   8.0   1.0  ...  8.0  12.0  14.0  12.0  1.0  0.0

# Or all in one run
results = cl.fit_transform(Xraw)

print(results['filenames'])
# array(['0.png', '1.png', '2.png', ..., '1794.png', '1795.png', '1796.png'],

v1.5.1

09 Jun 13:33
Compare
Choose a tag to compare
  • Fix for storing urls correctly