From 571a60250eb53e6f4c6828213393515cf7643fd0 Mon Sep 17 00:00:00 2001 From: Jack Turner Date: Wed, 3 Jun 2020 13:01:58 +0100 Subject: [PATCH 1/4] Update reproduce.sh --- reproduce.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reproduce.sh b/reproduce.sh index 83bbd73..d23c495 100644 --- a/reproduce.sh +++ b/reproduce.sh @@ -1,4 +1,4 @@ -python search.py --dataset cifar10 -python search.py --dataset cifar10 --trainval -python search.py --dataset cifar100 -python search.py --dataset ImageNet16-120 +python search.py --dataset cifar10 --data_loc '../datasets/cifar10' +python search.py --dataset cifar10 --trainval --data_loc '../datasets/cifar10' +python search.py --dataset cifar100 --data_loc '../datasets/cifar100' +python search.py --dataset ImageNet16-120 --data_loc '../datasets/ImageNet16' From 63f4c2dbbba22505f460ff3ac0ba21b556787a1c Mon Sep 17 00:00:00 2001 From: Jack Turner Date: Wed, 3 Jun 2020 15:22:12 +0100 Subject: [PATCH 2/4] Create LICENCE --- LICENCE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENCE diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..78e8a86 --- /dev/null +++ b/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Anonymous Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 147e7f96f2716948f09c3726d3cfabb1df3adbd4 Mon Sep 17 00:00:00 2001 From: Jack Turner Date: Wed, 3 Jun 2020 15:23:26 +0100 Subject: [PATCH 3/4] Update search.py --- search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.py b/search.py index 2d65c69..fc40248 100644 --- a/search.py +++ b/search.py @@ -54,7 +54,7 @@ def get_batch_jacobian(net, x, target, to, device, args=None): return jacob, target.detach() -def evidenceapprox_eval_score(jacob, labels=None): +def eval_score(jacob, labels=None): corrs = np.corrcoef(jacob) v, _ = np.linalg.eig(corrs) k = 1e-5 @@ -121,7 +121,7 @@ for N in runs: jacobs = jacobs.reshape(jacobs.size(0), -1).cpu().numpy() try: - s = evidenceapprox_eval_score(jacobs, labels) + s = eval_score(jacobs, labels) except Exception as e: print(e) s = np.nan From e34c96a633ad344405caa77662a01aa02d256ebb Mon Sep 17 00:00:00 2001 From: Jack Turner Date: Wed, 3 Jun 2020 15:24:48 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 91572a5..e9488f0 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,5 @@ conda env create -f environment.yml conda activate nas-wot ./reproduce.sh ``` + +The code is licensed under the MIT licence.