Registry / ai-ml / label-studio-ml

label-studio-ml

JSON →
library1.0.9pypypiunverified

Label Studio ML backend library for building, training, and deploying machine learning models with Label Studio. Version 1.0.9 supports Python >=3.6, released irregularly. Integrates with Label Studio for interactive labeling with model predictions.

pip install label-studio-ml
INSTALL
IMPORT
SIG · LABEL-STUDIO-ML
L
label-studio-ml
ai-mlpythonv1.0.9
Install
5.0s avg
Import
Disk
58MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 59.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.0s · import 0.000s · 61MB
58MB installed
● package 58MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LabelStudioMLBase
from label_studio_ml import LabelStudioMLBase
from label_studio_ml import LabelStudioMLBase

Basic skeleton for a Label Studio ML backend model.

from label_studio_ml.model import LabelStudioMLBase from label_studio_ml.utils import get_local_path class MyModel(LabelStudioMLBase): def predict(self, tasks, context, **kwargs): return [{"result": []}] def fit(self, completions, workdir=None, **kwargs): pass
label-studio-ml --version
Debug
Known issues
gotchaLabelStudioMLBase is the correct base class; avoid custom inheritance from sklearn-like classes directly. Predictions must be a list of dicts with 'result' key.
fix
Ensure predict() returns a list of dictionaries, each containing 'result' (list of annotation results).
affects: all
deprecatedThe old config system using label_config.xml is deprecated; use XML or JSON config from project settings.
fix
Use Label Studio web interface to generate config, or pass a LabelConfig string via label_config in init.
affects: <1.0.0
Upgrade
Version history
1.0.9latest on PyPI · released Jan 3, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
29
Resources
label-studio-ml — pip install label-studio-ml · libregistry