-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from twosixlabs/21-document-armory-library
API documentation with prefatory annotations
- Loading branch information
Showing
11 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Dataset Ingestion and Adaptation | ||
A dataset is a collection of images, i.e. the sample set, in a sequence-like structure. This class is used in the initial uploading and manipulation of a dataset and supports converting 2 different types of data into a structure compatible with armory-library: | ||
|
||
- Tuples datasets which can be turned into a map | ||
- PyTorch datasets needing to be turned into numpy arrays | ||
|
||
::: charmory.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Evaluation Configuration | ||
An evaluation is the complete testing of a model/attack. This class contains the configuration of the entire evaluation, to include details about the attack, dataset, evaluation, collected metrics, model, and host system configuration. | ||
|
||
::: charmory.evaluation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Label Targeters | ||
A label is the target/ground truth associated with a single sample. This class is a utility containing algorithms for generating or updating target labels in a variety of formats to include: | ||
|
||
- Single, fixed integer | ||
- Single, fixed string | ||
- Random label from a predefined list | ||
- Fixed integer offset | ||
- Fixed values as specified by an ordered list | ||
- Exact value as the input label | ||
- Replacement of object detection labels with fixed integer | ||
- Transcript from a fixed list with the length closest to that of the input label | ||
|
||
::: charmory.labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Computational Performance Profilers | ||
Profilers are responsible for generating benchmarking metrics for the evaluation. This class contains a choice of 3 profilers to collect computational metrics for evaluations: Basic, Deterministic, and Null. The first 2 provide an average CPU time for each type of computation. | ||
|
||
::: armory.metrics.compute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Evaluation Tracking | ||
Utilities supporting the tracking of evaluations within armory-library. Contains functions to see/choose/clear which parameters to be logged with MLflow, the ability to set the MLflow tracking URI, name and describe the experiment, and actually track the evaluation and system metrics (CPU/GPU, disk, and network utilization). | ||
|
||
::: charmory.track |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Dataset Transforms | ||
A transform is a (preprocessing) function on a model. This class contains general data transform functions for experimentation, to include Bounded Boxes (and the conversion between different formats of these), the resizing, padding, rescaling, and normalization (into z-scores) of images, image classification transforms, and object detection transforms. | ||
|
||
::: charmory.experimental.transforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Utilities | ||
A variety of utilities to aid in evaluation tasks. Includes: | ||
|
||
- A custom torchvision transform which converts PIL images to numpy arrays | ||
- A customizable transform which serves as the inverse of torchvision.transforms.Normalize | ||
- The ability to apply a given ART pre- or post-processor defense to a model | ||
- A transform that can be applied to JATIC-wrapped datasets using a preprocessor from a JATIC-wrapped model | ||
- A check for whether a given estimator has any pre- or post-processor defenses applied to it | ||
|
||
::: charmory.utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters