Micseb / spotlight

Interactively explore unstructured datasets from your dataframe.

Home Page:https://renumics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gray shape shifter

Renumics Spotlight

Interactively explore unstructured datasets from your dataframe.

Documentation β€’ Playbook β€’ Blog β€’ API Reference

Spotlight helps you to understand unstructured datasets fast. You can quickly create interactive visualizations and leverage data enrichments (e.g. embeddings, prediction, uncertainties) to identify critical clusters in your data.

Spotlight supports most unstructured data types including images, audio, text, videos, time-series and geometric data. You can start from your existing dataframe:

And start Spotlight with just a few lines of code:

from renumics import spotlight

spotlight.show(df, dtype={"image": spotlight.Image, "embedding": spotlight.Embedding})

πŸš€ Start with a use case

Machine learning and engineering teams use Spotlight to understand and communicate on complex unstructured data problems. Here are some examples on publicly available datasets along with code snippets (πŸ‘¨β€πŸ’»), interactive demos (πŸ•ΉοΈ) and blog articles (πŸ“):

Modality Task Description Link
πŸ–ΌοΈ Image [Classification] Find Issues in Any Image Classification Dataset πŸ‘¨β€πŸ’» πŸ“ πŸ•ΉοΈ
Find data issues in the CIFAR-100 image dataset πŸ•ΉοΈ
Fine-tuning image classification models from Bing image search πŸ‘¨β€πŸ’»πŸ“
πŸ”Š Audio [Classification] Find Issues in Any Audio Classification Dataset πŸ‘¨β€πŸ’» πŸ“πŸ•ΉοΈ
Debug pre-trained gender detection models on the emodb dataset πŸ“ πŸ•ΉοΈ
Compare gender detection models on the emodb dataset πŸ“ πŸ•ΉοΈ
πŸ“ Text [Classification] Find Issues in Any Text Classification Dataset πŸ‘¨β€πŸ’» πŸ“
πŸ“ˆπŸ–ΌοΈ Mixed [EDA] Explore results from the Formula1 Montreal 2023 GP πŸ•ΉοΈ
Explore a crash simulation dataset πŸ•ΉοΈ

⏱️ Quickstart

Get started by installing Spotlight and loading your first dataset.

What you'll need

Install Spotlight via pip

pip install renumics-spotlight

We recommend installing Spotlight and everything you need to work on your data in a separate virtual environment.

Load a dataset and start exploring

import pandas as pd
from renumics import spotlight

df = pd.read_csv("https://renumics.com/data/mnist/mnist-tiny.csv")
spotlight.show(df, dtype={"image": spotlight.Image})

pd.read_csv loads a sample csv file as a pandas DataFrame.

spotlight.show opens up spotlight in the browser with the pandas dataframe ready for you to explore. The dtype argument specifies custom column types for the browser viewer.

Load a Hugging Face audio dataset with embeddings and a pre-defined layout

import datasets
from renumics import spotlight

ds = datasets.load_dataset('renumics/emodb-enriched', split='all')
layout= spotlight.layouts.debug_classification(label='gender', prediction='m1_gender_prediction', embedding='m1_embedding', features=['age', 'emotion'])
df = ds.to_pandas()
spotlight.show(df, layout=layout)

Here, the data types are discovered automatically from the dataset and we use a pre-defined layout for model debugging. Custom layouts can be built programmatically or via the UI.

The datasets[audio] package can be installed via pip.

Usage Tracking

We have added crash report and perfomance collection. We do NOT collect user data other than an anonymized Machine Id obtained by py-machineid, and only log our own actions. We do NOT collect folder names, dataset names, or row data of any kind only aggregate performance statistics like total time of a table_load, crash data, etc. Collecting Spotlight crashes will help us improve stability. To opt out of the crash report collection define an environment variable called SPOTLIGHT_OPT_OUT and set it to true. e.G.export SPOTLIGHT_OPT_OUT=true

We are very happy to hear your feedback

Learn more about unstructured data workflows

  • πŸ€— Huggingface example spaces and datasets
  • πŸ€ Playbook for data-centric AI workflows
  • 🍰 Sliceguard library for automatic slice detection

About

Interactively explore unstructured datasets from your dataframe.

https://renumics.com

License:MIT License


Languages

Language:TypeScript 50.2%Language:Python 41.4%Language:Jupyter Notebook 7.5%Language:Makefile 0.5%Language:JavaScript 0.2%Language:HTML 0.1%Language:PowerShell 0.1%Language:CSS 0.0%