Skip to content

fhstp/trustai-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrustAI: Active Learning with Label Studio

TrustAI is a comprehensive toolkit designed to streamline the integration of Active Learning workflows with Label Studio. It provides a set of Python utilities and scripts to manage projects, connect machine learning backends, and run interactive active learning loops to efficiently annotate data.

Features

  • Project Management: Programmatically create and configure Label Studio projects via JSON configuration files.
  • Active Learning: specialized runner for interactive active learning loops with various uncertainty sampling strategies (Entropy, Least Confidence, Margin).
  • ML Backend Integration: Tools to easily connect and manage ML backends.
  • Data Import/Export: Utilities for importing tasks from files or URLs and exporting annotations.
  • Interactive CLI: Rich terminal interface for managing projects and running active learning sessions.

Installation

  1. Clone the repository.
  2. Install the required dependencies:
pip install -r requirements.txt

Quick Start

1. Setup Configuration

First, you need to configure the connection to your Label Studio instance. Create or edit config.json in the root directory:

{
  "api_base_url": "http://localhost:8080",
  "api_key": "your-api-key-here"
}
  • api_base_url: The URL where your Label Studio instance is running.
  • api_key: Your personal API key, which can be found in Label Studio under Account & Settings > Account.

2. Setup a Project

You can define your project structure in a JSON file for reproducible setups. See Project Configuration for details.

3. Run Active Learning

Start the interactive active learning runner to select the most informative samples for annotation.

python -m trustai.active_learning_runner

For a detailed guide on the active learning process and strategies, refer to the Active Learning Documentation.

Documentation

Requirements

  • Python 3.8+
  • Label Studio instance (running locally or remotely)
  • requests, rich, numpy, torch, scikit-learn (see requirements.txt)

About

TrustAI: Trustworthy and User-Centered AI Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages