Skip to main content

Zeef: Interactive Learning for Python

PyPI Downloads Testing FOSSA Status

An interactive learning framework for data-centric AI.

Zeef is featured for

  • Active learning - Off the shelf data selection algorithms to reduce the labor of data annotation.
  • Continual learning - Easy to use APIs to prototype a continual learning workflow instantly.

Installation

pip install zeef

For the local development, you can install from the Anaconda environment by

conda env create -f environment.yml

Quick Start

We can start from the easiest example: random select data points from an unlabeled data pool.

from sklearn import svm

from zeef.data import Pool
from zeef.learner.sklearn import Learner
from zeef.strategy import RandomSampling

data_pool = Pool(unlabeled_data)  # generate the data pool.
# define the sampling strategy and the SVM learner.
strategy = RandomSampling(data_pool, learner=Learner(net=svm.SVC(probability=True)))

query_ids = strategy.query(1000)  # query 1k samples for labeling.
data_pool.label_by_ids(query_ids, data_labels)  # label the 1k samples.
strategy.learn()  # train the model using all the labeled data.
strategy.infer(test_data)  # evaluate the model.

A quick MNIST CNN example can be found in here. Run

python torch_al.py

to start the quick demonstration.

License

Apache License 2.0

Metadata

Release files for zeef 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zeef 0.1.3
File Size Uploaded
zeef-0.1.3.tar.gz 21.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zeef 0.1.3
File Interpreter ABI Platform
zeef-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 50.6 kB

Release files / zeef-0.1.3.tar.gz

Download URL zeef-0.1.3.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc9aa957a4fd1ff7c8a5818b704d133a88b0945c82f9a4752468591204d86bc9
BLAKE2b-256 checksum
How to use checksums
0cd242077888301631bb3f50ddbd79dee43517620071a197df4d1192cf094798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release files / zeef-0.1.3-py3-none-any.whl

Download URL zeef-0.1.3-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3de3a10c1680214ca0fcfe67feab1bae661b9d8f06bad4c6312dcb7ceba10fc1
BLAKE2b-256 checksum
How to use checksums
23cd9a2b0207e4bdb99e3f5d4dd5f809387f389d16ca66d1e9d968c435c569fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page