Skip to main content

Alan Bootstrap

Active Learning

Setup Environment

  1. Create a Conda Environment for Python 3.7.3:
conda create --name <EVN_NAME> python=3.7.3
  1. Git Clone:
git clone https://<USR_NAME>@bitbucket.org/rbcmllab/data_bootstrap.git
  1. Install Python Dependencies
cd data_bootstrap/alanbootstrap
pip install -r requirements.txt
pip install alanbootstrap

Run

> python bin/ast_al_bin.py -h

usage: ast_al_bin.py [-h] -i INIT -p POOL -o OUTPUT [-d DEVSET]

Parameters for AST classification active learner. The model will be persisted
into the output folder at every iteration. If a dev dataset was provided, the
classification accuracy score would be calculated on this dataset at each
iteration and a performance plot would be saved into the output folder.

optional arguments:
  -h, --help            show this help message and exit
  -i INIT, --init INIT  Shared-AST json file path; ASTs in this file will be
                        used to initialize the active learner. Every AST in
                        this file must contain a target value and a list of
                        complexity_features.
  -p POOL, --pool POOL  Shared-AST json file path; Active learner will sample
                        ASTs from this file Every AST in this file must
                        contain a list of complexity_features.
  -o OUTPUT, --output OUTPUT
                        Absolute path of the model persisting folder.
  -d DEVSET, --devset DEVSET
                        Shared-AST json file path; ASTs in this file will be
                        used to evaluate the active learner. Every AST in this
                        file must contain a target value and a list of
                        complexity_features.

Example:

> python bin/ast_al_bin.py \
-i $DATA_DIR/ast_train.json \
-p $DATA_DIR/ast_pool.json \
-o $DATA_DIR \
-d $DATA_DIR/ast_dev.json

Release files for alanbootstrap 0.2.0

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

Built distribution (wheel)

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

Release files / alanbootstrap-0.2.0-py3-none-any.whl

Download URL alanbootstrap-0.2.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c083773d63e34e47d6e020e691a211d58a12902ea067754b1030cd03bff78c
BLAKE2b-256 checksum
How to use checksums
ee4aca8679644534fd0428df055362cb0d229f7218e40356708863f40c077ce5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.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