Active Learning
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with iitml:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Active Learning Library


pyAL is an python library that implements common active learning strategies. The project is currently developed by the members of the Machine Learning Lab at IIT: (

This work is supported by NSF CAREER Award #1350337.

Currently supported strategies:

  1. Random sampling
  2. Uncertainty sampling by Lewis and Gale, 1994. A sequential algorithm for training text classifiers. Proceedings of the 17th annual international ACM SIGIR conference on Research and development in information retrieval.
  3. Query-by-committee by Seung et al, 1992. Query by committee. Proceedings of the fifth annual workshop on Computational learning theory.
  4. Expected error reduction by Roy and McCallum, 2001. Toward optimal active learning through monte carlo estimation of error reduction. Proceedings of the Eighteenth International Conference on Machine Learning.

Related Links


pyAL is tested to work under Python 2.7. The required dependencies to build the software are scikit-learn >= 0.15, NumPy >= 1.6.2, and SciPy >= 0.9.


This package uses distutils, which is the default way of installing python modules. To install in your home directory, use:

python install --user To install for all users on Unix/Linux:

$ python build
$ sudo python install

Content of this Repository

This repository is organized as follows:

  • al: contains the code
  • documentation: contains the documentation of the classes
  • front_end: containts the GUI
  • utils: contains the utilities


Code - GIT

You can check the latest sources with the command:

git clone

How to use this Library

GUI Example

Module Example

from al.learning_curve import LearningCurve

learning_api = LearningCurve()

training_size, avg_accu, avg_auc = learning_api.run_trials(X_pool, y_pool, X_test, y_test, strategy, classifier, alpha, boot_strap_size, step_size, budget, num_trials)