.txt文件中的NumPy数组太大,无法加载到内存中当你使用chunking来分解一个大的数据文件时,你应该先将数...
importnumpyasnpfromitertoolsimportchain,izipdeffind(a,predicate,chunk_size=1024):"""Find the indices of array elements that match the predicate.Parameters---a : array_likeInput data, must be 1D.predicate : functionA function which operates on sections of the given array, returningelement-wise ...