Skip to content

Commit

Permalink
bugfix: autocast issue float->inf
Browse files Browse the repository at this point in the history
  • Loading branch information
fishroot committed Apr 17, 2017
1 parent 3432f22 commit d798160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nemoa/dataset/classes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ def _get_table(self, table = None, cols = '*', rows = '*',
if size == 0 or size == None: return data
fraction = self._config['table'][table]['fraction']
rowsel = numpy.random.randint(data.size,
size = round(fraction * size))
size = int(round(fraction * size)))

return numpy.take(data, rowsel)

Expand Down

0 comments on commit d798160

Please sign in to comment.