Giter Club home page Giter Club logo

sliceguard's Introduction

Sliceguard Logo

sliceguard

Detect problematic data slices in unstructured and structured data – fast.

πŸš€ Introduction

Sliceguard helps you to quickly discover problematic data segments. It supports structured data as well as unstructured data like images, text or audio. Sliceguard generates an interactive report with just a few lines of code:

from sliceguard import SliceGuard

sg = SliceGuard()
issues = sg.find_issues(df, features=["image"])

sg.report()

⏱️ Quickstart

Install sliceguard by running pip install sliceguard[all].

Go straight to our quickstart examples for your use case:

πŸ—ΊοΈ Public Roadmap

We maintain a public roadmap so you can follow along the development of this library.

sliceguard's People

Contributors

dani2112 avatar markus-stoll avatar omerferhatt avatar renumics avatar tarekt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stefanobranco

sliceguard's Issues

Error on loading audio data

It is known from the current codes that sliceguard's from_huggingface function only supports image data.

def from_huggingface(dataset_identifier: str):
# Simple utility method to support loading of huggingface datasets
# Currently only supports image data. Use custom load function if you need something else.

However, the example on the following page stated that now sliceguard supports audio data.

https://renumics.com/docs/use-cases/audio-classification

Following example above, I faced RuntimeError below (Audio is not supported)

In [7]: from renumics import spotlight
   ...: from sliceguard import SliceGuard
   ...: from sliceguard.data import from_huggingface
   ...: from sklearn.metrics import accuracy_score
   ...: 
   ...: # Load an Example Dataset as DataFrame
   ...: df = from_huggingface("renumics/emodb")
   ...: 
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[7], line 7
      4 from sklearn.metrics import accuracy_score
      6 # Load an Example Dataset as DataFrame
----> 7 df = from_huggingface("renumics/emodb")

File ~/miniconda3/envs/spotlight/lib/python3.9/site-packages/sliceguard/data.py:36, in from_huggingface(dataset_identifier)
     29 for fname, ftype in cur_split.features.items():
     30     if (
     31         not isinstance(ftype, Image)
     32         and not isinstance(ftype, ClassLabel)
     33         and not isinstance(ftype, Value)
     34         and not isinstance(ftype, Sequence)
     35     ):
---> 36         raise RuntimeError(
     37             f"Found unsupported datatype {ftype}. Use custom load function."
     38         )
     39     # Run transformations for specific data types if needed.
     40     if isinstance(ftype, ClassLabel):

RuntimeError: Found unsupported datatype Audio(sampling_rate=None, mono=True, decode=True, id=None). Use custom load function.

PR #58 may solve this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.