From c5c3e922a951c29c66d6377b5fea25189a25b85c Mon Sep 17 00:00:00 2001 From: nunzip Date: Tue, 12 Feb 2019 20:13:37 +0000 Subject: Remove 2pixels testimode --- evaluate.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/evaluate.py b/evaluate.py index 321e792..fb72a8b 100755 --- a/evaluate.py +++ b/evaluate.py @@ -50,10 +50,6 @@ def make_histogram(data, model, args): leaves = np.apply_along_axis(np.bincount, axis=0, arr=leaves, minlength=args.leaves) histogram[i][j] = leaves.reshape(hist_size) - print(histogram[0][0].shape) - plt.bar(np.arange(100), histogram[0][0].flatten()) - plt.show() - return histogram def run_model (data, train, test, train_part, args): @@ -123,15 +119,6 @@ def main(): print("Accuracy: ",acc[i][j]) args.seed = 1 - plt.plot(a,acc[0]) - acc[1][2]+=0.01 - acc[1][4]+=0.01 - acc[1][7]+=0.01 - acc[1][8]+=0.01 - acc[1][9]+=0.01 - acc[1][10]+=0.01 - acc[1][12]+=0.01 - acc[1][14]+=0.01 plt.plot(a,acc[1]) plt.legend(('Axis aligned','Two Pixels Test'), loc='best') plt.ylabel('Normalized Classification Accuracy') -- cgit v1.2.3-54-g00ecf