From 5f2ae02ca746110c5f5408cd3b65066d053c42de Mon Sep 17 00:00:00 2001 From: Kevin M Ellis Date: Thu, 28 Nov 2019 18:07:51 -0500 Subject: [PATCH] improvements to depth analysis --- bin/analyzeDepth.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/analyzeDepth.py b/bin/analyzeDepth.py index 230ec67c9..7e7d5b9ed 100644 --- a/bin/analyzeDepth.py +++ b/bin/analyzeDepth.py @@ -49,8 +49,8 @@ def loadCheckpoint(r): result = loadPickle(r) if arguments.every: - hits = [len(tst)/result.numTestingTasks for tst in result.testingSearchTime] - depths = [ [primitiveDepth(e) for e in g.primitives ] for g in result.grammars] + hits = [len(tst)/result.numTestingTasks for tst in result.testingSearchTime][1:] + depths = [ [primitiveDepth(e) for e in g.primitives ] for g in result.grammars][1:] return domain,list(zip(range(999),hits,depths)) g = result.grammars[-1] @@ -114,13 +114,13 @@ def loadCheckpoint(r): if results is fullResults: #003f5c c = (0., - factor*63./256., - factor*92./256.) + factor*63./92., + factor*92./92.) elif results is lesionResults: # "#ef5675" - c = (factor*239./256., - factor*86./256., - factor*117./256.) + c = (factor*239./239., + factor*86./239., + factor*117./239.) C.append(c) plot.figure(figsize=(4,2.5))