Skip to content

Commit

Permalink
Keeping inf values.
Browse files Browse the repository at this point in the history
  • Loading branch information
souzamarcelo committed Apr 16, 2021
1 parent b7b5727 commit 787ac7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ def __readTraining(iracelog, typeResult, bkvFile, overTime, imputation, logScale
experiment['startTime'] = cumulativeTime
cumulativeTime += float(iraceExpLog[i][3])
experiment['configuration'] = int(iraceExpLog[i][2])
experiment['value'] = min(iraceExp[experiment['instance'] - 1][experiment['configuration'] - 1], sys.maxsize)
value = iraceExp[experiment['instance'] - 1][experiment['configuration'] - 1]
experiment['value'] = min(value, sys.maxsize) if value != float('inf') else float('inf')
# Determine the type of the configuration/execution
experiment['type'] = ('best' if experiment['configuration'] == elites[-1][0] else
'final' if experiment['configuration'] in elites[-1] else
Expand Down

0 comments on commit 787ac7c

Please sign in to comment.