Clusterfun

Latest version: v0.4.2a7

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

Scan your dependencies

0.4.2

Add audio support and `display` parameter.

Currently, we determine the media type naively by checking if the file extension is included in:


[
"mp3",
"wav",
"aac",
"ogg",
"flac",
"wma",
"m4a",
"aiff",
"midi",
"ape",
"wavpack",
"alac",
"ac3",
"opus",
]

Audio is autoplayed on hover.
When displaying audio, the grid view doesn't have an image, but I can imagine it will be useful to display something there.
That's why there's a new parameter `display` added to all plot types that allows you to display the value of one or more columns in the grid view, as such:
<img width="1291" alt="image" src="https://github.com/gietema/clusterfun/assets/20994144/c33a7c98-d326-47e3-a3fc-37c890a9096f">

This can be created like this:
python
import pandas as pd
import clusterfun as clt

df = pd.read_parquet("https://raw.githubusercontent.com/gietema/clusterfun-data/main/libri_speech_test_clean.parquet")
print(clt.grid(
df,
title="LibriSpeech test-clean",
media="filepath",
show=False,
display="translation",
))


A less naive way of checking for audio support can be added later if this is not sufficient.

0.3.3

<img width="331" alt="image" src="https://github.com/gietema/clusterfun/assets/20994144/f6eab73d-dd8a-4d83-94f6-93244862a965">
The grid now has a download button that allows you to download the selected media as a csv.

0.3.1

<img width="1131" alt="image" src="https://github.com/gietema/clusterfun/assets/20994144/67d57132-02ad-4c0c-8403-43a7af719bc5">
Add `is_categorical=False` to a bar chart, histogram or scatter along with a `color=...` to get a continuous colour scale.

0.3.0

This release allows you to create different [storage clients](https://github.com/gietema/clusterfun/blob/main/clusterfun/storage/client/base.py
), so you can more easily create a version of clusterfun that loads data from different sources.
This should open up the way to add GCP support soon as well.


Thanks to hyenal for adding this!

0.2.3

Mostly bug fixes in this release:

* Python 3.12 support, dropped 3.8 support

* Fix bug that made it impossible to create plots with two classes

* Grid page does not reset to the first page when enlarging (clicking) an image on a second page

* Slightly more robust filtering

Next up is labelling and saving/downloading selections.

0.1.6alpha

- Stats feature for grid view, allowing you to quickly look at plots related to the selection of media.
- The grid view is now filterable.
- Refactor of frontend with tailwind and jotai.
- Library now works from within Jupyter notebooks

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.