Alan Bootstrap
Active Learning
Setup Environment
- Create a Conda Environment for Python 3.7.3:
conda create --name <EVN_NAME> python=3.7.3
conda activate <EVN_NAME>
- Git Clone:
git clone https://<USR_NAME>@bitbucket.org/rbcmllab/alan-framework.git
- Install Python Dependencies
cd alan-framework/modules/boostrap/active_learning
pip install -r requirements.txt
pip install alanbal
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
Metadata
Release files for alanbal 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alanbal-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for alanbal-0.1.1-py3-none-any.whl |
Release files / alanbal-0.1.1-py3-none-any.whl
| Download URL | alanbal-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b29e8ad5abf496c84846ee9a09c8510d795e071571d3e933e70e2ddf49fd1a2
|
|
BLAKE2b-256 checksum How to use checksums |
f16d20d7e1a6525a70173ce7527186e55349295dc1b8e152428505034b802b2e
|
| 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
|
Security for alanbal 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.