Skip to content

Comments

OND protocol#24

Open
nrsyed wants to merge 19 commits intomainfrom
dev/ond
Open

OND protocol#24
nrsyed wants to merge 19 commits intomainfrom
dev/ond

Conversation

@nrsyed
Copy link
Collaborator

@nrsyed nrsyed commented May 31, 2021

This PR aims to merge the OND development branch into main.

In its current state, it allows the GAE algorithm to be run (with red light world detection) on hardcoded test data.

Configuration reading/handling
Create dummy interface and sample test
* Add MockDetector class and update protocol, interface to run mock test

* Refactor DummyInterface round-handling, update docstrings, update example metadata

* Remove toolset from MockDetector method signatures

* Complete basic ONDProtocol functionality for testing, update sample config

* Initialize detector with detector config instead of whole config
* Return populated feature/logit dicts from feature extraction method

* Add world detection functionality

* Add novelty classification functionality

* Update protocol to use features_dict and logits_dict returned by feature extraction

* Rename MockDetector to RandomNoveltyDetector

* Update method signatures, docstrings, use smqtk

* Pass round_id for constructing output filenames

* Remove tinker import, update number of classes to match config

* Fix type hint syntax

* Mock save features

* Update sample_config
#13)

* Enable option to perform feature extraction only; update sample config

* Continue if feature extraction only
* Call algorithm methods directly instead of using execute method with string argument

* Restructure algorithm calls with toolset dict replacements

* Update random novelty detector method signatures to match method calls in protocol
Add functionality for saving features and loading saved features
* Write out images/files to a temp directory and update returned path

* Add errors.py
* Add novelty interface abstract class

* Add random novelty detector adapter and update method signatures

* Instantiate random novelty detector adapter instead of detector algorithm in OND protocol

* Rename novelty_interface module to ond_adapter

* Add initialize abstract method

* Use pass instead of NotImplementedError

* Add docstrings to abstract methods

* Remove unnecessary smqtk imports

* Move adapter class to separate module and update imports
@nrsyed nrsyed requested review from as6520, cfunk1210 and waxlamp May 31, 2021 18:55
Copy link
Contributor

@waxlamp waxlamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this passes all tests and works as expected, then it's ok with me. Especially so if this PR simply consists of all the PRs already reviewed and merged to dev/ond.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants