Skip to content

swf1996120/RTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTS

RTS (Robust Test Selection for Deep Neural Networks) could be used to select an effective subset from massive unlabelled data, for saving the cost of DNN testing.

Installation

pip install -r requirements.txt

The structure of the repository

In the experiment, our method and all baselines are conducted upon Keras 2.3.1 with TensorFlow 1.13.1. All experiments are performed on a Ubuntu 20.04 with four NVIDIA GeForce RTX 3090 GPUs, one 12-core processor, and 256GB memory.

main_folder:

├── ATS "adaptive test selection method"
├── gen_data/ "load data"
├── selection_method/ "test select method"
├── utils/ "some tool functions"
├── mop/  "data mutation operators"
├── statistics_utils/	"statistics raw results"
├── exp_fault.py "RQ1"
├── exp_retrain_*.py "RQ2"
├── exp_utils.py "some experiment utils"
├── statistics_result "a interface to get the pictures and tables in experiment"
├── BestSolution.py "Robust Test Selection for Deep Neural Networks"
|__ adv_*.py "adversarial attack experiments"
|__ OOD_detection.py "OOD detection experiments"

others:

├── result/ "tables of experimental results"
├── README.md
└── requirements.txt

Usage

In all results, the "DeepDiv" refers to ATS method, The "DeepDAC" refers to our proposed method RTS.

If you want to reproduce our experiment:

  1. initial models and datasets

  2. experiment

    • python exp_retrain_cov.py

      python exp_retrain_rank.py

      Here, we get the priority sequence of all selection methods.

    • python exp_fault.py

      Here, we get the information of fault number of all priority sequences

  3. get results

    python statistics_result.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages