Skip to main content

Acton - A scientific research assistant

Acton is a modular Python library for active learning. Acton is a suburb in Canberra, where Australian National University is located.

Build Status Documentation Status

Dependencies

Most dependencies will be installed by pip. You will need to manually install:

Setup

Install Acton using pip3:

pip install git+https://github.com/chengsoonong/acton.git

This provides access to a command-line tool acton as well as the acton Python library.

Acton CLI

The command-line interface to Acton is available through the acton command. This takes a dataset of features and labels and simulates an active learning experiment on that dataset.

Input

Acton supports three formats of dataset: ASCII, pandas, and HDF5. ASCII tables can be any file read by astropy.io.ascii.read, including many common plain-text table formats like CSV. pandas tables are supported if dumped to a file from DataFrame.to_hdf. HDF5 tables are either an HDF5 file with datasets for each feature and a dataset for labels, or an HDF5 file with one multidimensional dataset for features and one dataset for labels.

Output

Acton outputs a file containing predictions for each epoch of the simulation. These are encoded as specified in this notebook.

Quickstart

You will need a dataset. Acton currently supports ASCII tables (anything that can be read by astropy.io.ascii.read), HDF5 tables, and Pandas tables saved as HDF5. Here’s a simple classification dataset that you can use.

To run Acton to generate a passive learning curve with logistic regression:

acton --data classification.txt --label col20 --feature col10 --feature col11 -o passive.pb --recommender RandomRecommender --predictor LogisticRegression

This command uses columns col10 and col11 as features, and col20 as labels, a logistic regression predictor, and random recommendations. It outputs all predictions for test data points selected randomly from the input data to passive.pb, which can then be used to construct a plot. To output an active learning curve using uncertainty sampling, change RandomRecommender to UncertaintyRecommender.

To show the learning curve, use acton.plot:

python3 -m acton.plot passive.pb

Look at the directory examples for more examples.

Metadata

Release files for acton 0.3.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 acton 0.3.3
File Size Uploaded
acton-0.3.3.tar.gz 21.1 kB Details

Release files / acton-0.3.3.tar.gz

Download URL acton-0.3.3.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc802064567e1229e8dc0587639ac8e2b4a525ef1ebeb8459162eaac003ebebb
BLAKE2b-256 checksum
How to use checksums
33ce1993c3ea54398800b86064d63ade3c44845f1a72872deec75ee08c5b648b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.3 This release

1 release file

0.3.2

1 release file

0.3.1

1 release file

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