Skip to content

Commit

Permalink
improvements to depth analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin M Ellis committed Nov 28, 2019
1 parent 1558cf5 commit 5f2ae02
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/analyzeDepth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 5f2ae02

Please sign in to comment.