Hi,
If len(lines) = 4, list(range(len(lines) - 1)) would be only [0, 1, 2]
So.. Is here need to remove -1 to make sure the sample result is include the last line of file?
from:
|
c = Counter(np.random.choice(range(len(lines) - 1), size = batch_size)) |
to:
c = Counter(np.random.choice(range(len(lines)), size = batch_size))
thanks
Hi,
If
len(lines)= 4,list(range(len(lines) - 1))would be only [0, 1, 2]So.. Is here need to remove
-1to make sure the sample result is include the last line of file?from:
AWE/AnonymousWalkKernel.py
Line 403 in 6dd26b3
to:
c = Counter(np.random.choice(range(len(lines)), size = batch_size))thanks