Skip to content

Commit d798160

Browse files
committed
bugfix: autocast issue float->inf
1 parent 3432f22 commit d798160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nemoa/dataset/classes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ def _get_table(self, table = None, cols = '*', rows = '*',
10351035
if size == 0 or size == None: return data
10361036
fraction = self._config['table'][table]['fraction']
10371037
rowsel = numpy.random.randint(data.size,
1038-
size = round(fraction * size))
1038+
size = int(round(fraction * size)))
10391039

10401040
return numpy.take(data, rowsel)
10411041

0 commit comments

Comments
 (0)