d390e46cad8f52df5fdf16751beb028ad1a87fe3,paysage/batch.py,IndexBatch,get,#IndexBatch#Any#,30
Before Change
self.reset(mode=mode)
raise StopIteration
else:
new_end = min(self.start[mode] + self.batch_size, self.end[mode])
indices = (self.start[mode], new_end)
self.start[mode] += self.batch_size
return indices
After Change
self.iterators["validate"] = inclusive_slice(self.end, self.nrows, self.batch_size)
def get(self, mode="train"):
try:
next_iter = next(self.iterators[mode])
except StopIteration:
self.reset(mode)
raise StopIteration
return next_iter
class Batch(object):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: drckf/paysage
Commit Name: d390e46cad8f52df5fdf16751beb028ad1a87fe3
Time: 2016-12-07
Author: charlesfisher@Charless-MacBook-Pro.local
File Name: paysage/batch.py
Class Name: IndexBatch
Method Name: get
Project Name: deeptools/HiCExplorer
Commit Name: 885116a354c222c66d82501c032ec6e4f27e11ca
Time: 2017-10-19
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/hicPlotMatrix.py
Class Name:
Method Name: main
Project Name: mne-tools/mne-python
Commit Name: 1e882d05cab139530b2859bf4940c681f5b4b5e2
Time: 2020-03-27
Author: larson.eric.d@gmail.com
File Name: mne/viz/_brain/_timeviewer.py
Class Name: _TimeViewer
Method Name: play