[numpy]array_split
2019-06-09 本文已影响0人
VanJordan
- 将
sorted_indices
分割成长度为num_sections
的小片段。
self.batches = numpy.array_split(sorted_indices, num_sections)
sorted_indices
分割成长度为num_sections
的小片段。self.batches = numpy.array_split(sorted_indices, num_sections)