Clustimage

Latest version: v1.5.20

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

1.5.2

* 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

1.5.1

* Fix for storing urls correctly

1.5.0

* Adding original url paths in the results
* bug fix in scatter that occurred in some cases when having low sample sizes
* Code cleaning

1.4.10

* fix in case clean_tempdir=True is used

1.4.9

* catch error when files are deleted from temp directory and trying to make a plot

1.4.8

* added functionality to remove temp directory using the function `cl.clean_files(clean_tempdir=True)`

Page 4 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.