• Stars
    star
    1,040
  • Rank 44,297 (Top 0.9 %)
  • Language
    Jupyter Notebook
  • License
    Apache License 2.0
  • Created about 2 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿฆ˜ Explore multimedia datasets at scale


PyPI version GitHub Kangas Live Demo Kangas Documentation Downloads DOI

Kangas: Explore Multimedia Datasets at Scale ๐Ÿฆ˜

Kangas is a tool for exploring, analyzing, and visualizing large-scale multimedia data. It provides a straightforward Python API for logging large tables of data, along with an intuitive visual interface for performing complex queries against your dataset.

The key features of Kangas include:

  • Scalability. Kangas DataGrid, the fundamental class for representing datasets, can easily store millions of rows of data.
  • Performance. Group, sort, and filter across millions of data points in seconds with a simple, fast UI.
  • Interoperability. Any data, any environment. Kangas can run in a notebook or as a standalone app, both locally and remotely.
  • Integrated computer vision support. Visualize and filter bounding boxes, labels, and metadata without any extra setup.

You can access a live demo of Kangas at kangas.comet.com.

Getting Started

Kangas is accessible as a Python library via pip

pip install kangas

Once installed, there are many ways to load or create a DataGrid.

Without writing any code, you can even download a DataGrid and begin exploring the data. At the console:

kangas server https://github.com/caleb-kaiser/kangas_examples/raw/master/coco-500.datagrid.zip

That's it!

In the next example, we load a publicly available DataGrid file, but the Kangas API also provides methods for ingesting CSVs, Pandas DataFrames, and for manually constructing a new DataGrid:

import kangas as kg

# Load an existing DataGrid
dg = kg.read_datagrid("https://github.com/caleb-kaiser/kangas_examples/raw/master/coco-500.datagrid.zip")

After your DataGrid is initialized, you can render it within the Kangas Viewer directly from Python:

dg.show()

image

From the Kangas Viewer, you can group, sort, and filter data. In addition, Kangas will do its best to parse any metadata attached to your assets. For example, if you're using the COCO-500 DataGrid from the quickstart above, Kangas will automatically parse labels and scores for each image:

And voilร ! Now you're started using Kangas.

Pandas DataFrames

Kangas can also read Pandas DataFrame objects directly:

import kangas as kg
import pandas as pd

df = pd.DataFrame({"hidden_layer_size": [8, 16, 64], "loss": [0.97, 0.53, 0.12]})
dg = kg.read_dataframe(df)

HuggingFace Datasets

HuggingFace's datasets can also be loaded into DataGrid directly because they use rows of dictionaries, and images are represented by PIL images. DataGrid will automatically convert PIL images into a Kangas Image:

import kangas as kg
from datasets import load_dataset

dataset = load_dataset("beans", split="train")
dg = kg.DataGrid(dataset)

Parquet files

Note: You will need to have pyarrow installed to read parquet files.

import kangas as kg

dg = kg.read_parquet("https://github.com/Teradata/kylo/raw/master/samples/sample-data/parquet/userdata5.parquet")

If you'd like to explore further, take a look at our example notebooks below:

Documentation

  1. Documentation Homepage
  2. Quickstart Notebook
  3. Integrations Notebook
  4. MNIST Classification Example

FAQ

Is Kangas ready for public use?

Kangas is currently in an open beta. We stress test Kangas heavily and often, and are confident in sharing with the public. That being said, it is a very young project, and there will be bugs and rough edges. Additionally, new features will be added at a fast pace, so if you find a bug or have a request, please do not hesitate to open a ticket or start a discussion.

Does Kangas support _____ system?

Kangas can be run as a standalone application on newer versions of Windows, MacOS, and most popular Linux distributions. In addition, Kangas can run remotely via Google Colab, or within any Jupyter notebook environment.

When should I use Kangas instead of _____?

Pandas

Kangas and Pandas are complimentary tools. When you've wrangled your data into a Pandas DataFrame, Kangas can ingest that DataFrame via the DataGrid.read_dataframe() method, making it easy to visualize and explore your tabular data. Additionally, if your data is too large to process in Pandas or involves multimedia assets, Kangas is a strong alternative.

Tensorboard

TensorBoard is one of several tools (including Kangas parent organization, Comet that specializes in experiment management and monitoring). Like Kangas, it provides charting and visualizations out of the box, but is specifically designed for analyzing training workflows. Kangas, in contrast, is designed to analyze any dataset. For example, even if you use a tool like TensorBoard for analyzing training runs, you may still use Kangas before training for exploratory data analysis, or for prediction analysis post-deployment.

What is Kangas relationship with Comet?

Kangas is developed and maintained by the Research team at Comet. It began life as a prototype for Comet users who needed to visualize large computer vision datasets, and was later spun out into a standalone open source project. Kangas is and always will be free and open source software, and we are more than happy to accept community contributions.

Contributing

Kangas has only recently been released, and as such, we don't have much of a formal process for contributions. If you have an idea or would like to make a contribution, we recommend opening a ticket describing your proposed contribution so that we can collaborate directly. We love working with community contributors.

More Repositories

1

opik

Open-source end-to-end LLM Development Platform
Java
1,671
star
2

comet-examples

Examples of Machine Learning code using Comet.ml
Jupyter Notebook
148
star
3

issue-tracking

Questions, Help, and Issues for Comet ML
85
star
4

comet-for-mlflow

Comet-For-MLFlow Extension
Python
55
star
5

blog-serving-hugging-face-models

Shell
19
star
6

comet-content

Content for Comet Blog
Jupyter Notebook
9
star
7

comet-sagemaker

Example demonstrating how to use Comet with Amazon Sagemaker
Python
8
star
8

cometr

Comet SDK for R
R
8
star
9

comet-sdk-extensions

Open source contributions for integrations with comet_ml
Python
6
star
10

comet-java-sdk

Comet Java SDK
Java
5
star
11

co2-tracker-utils

CO2 Tracker helpers
Python
5
star
12

streamlit-jupyter-magic

A local streamlit server for Jupyter environments
Python
5
star
13

keras-fruit-classifer

Classifying fruits using a Keras multi-class image classification model and Google Openย Images
Jupyter Notebook
4
star
14

ray-tune-example

Example for using Ray Tune's Comet Integration
Python
2
star
15

oscontainer

The small Python library to read resources available for Linux OS container.
Python
2
star
16

mlops-actions

Python
2
star
17

terraform-aws-comet

HCL
2
star
18

rd2md

A converter to transform R docs into markdown
Python
2
star
19

comet-detectron

Example for working with Detectron and Comet
Python
1
star
20

docker_upload

Build and upload docker images
1
star
21

docker_build

1
star
22

comet-ml.github.io

Comet ML code
JavaScript
1
star
23

rllib-example

Example of logging RLLib runs to Comet
Python
1
star
24

comet-recipes

A collection of cookiecutter recipes for integrating ML frameworks with Comet in Python and R
Python
1
star
25

ansible-playbill

Python library for invoking anisble playbooks from within other python programs
Python
1
star