def authorlatestall(author): i = 1 t = time.time() total = 0 while True: a = authorlatestindex(author,i) u.writepickle(a,"-".join(["/home/umar/youtubeauthor", author,str(i),str(t),str(time.time())])) n = len(a) total = total + n i = i + 25 if n < 25: break if i > 1000: break print str(total)+" total videos"
def createrandomprojections(amount,size,file): u.writepickle(file,np.random.random((amount*size))) print "written random projections in ",file