aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2019-02-12 20:22:25 +0000
committerVasil Zlatanov <v@skozl.com>2019-02-12 20:22:25 +0000
commit7150ceab64658c2154b3b3f73fc99fdba27b2473 (patch)
treeb391410955e824423feb9b01f7258dd451503676
parenta6e5ced5c4dddd76af5e8ffd6950b1b2b7836fd0 (diff)
parent28fc3fe28aca669852021d7c2b501dbcc3f66aff (diff)
downloade4-vision-7150ceab64658c2154b3b3f73fc99fdba27b2473.tar.gz
e4-vision-7150ceab64658c2154b3b3f73fc99fdba27b2473.tar.bz2
e4-vision-7150ceab64658c2154b3b3f73fc99fdba27b2473.zip
Merge branch 'master' of skozl.com:e4-vision
-rwxr-xr-xevaluate.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/evaluate.py b/evaluate.py
index 371ba36..8874912 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):
@@ -124,15 +120,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')