原书出处
Natural Language Processing in Action, Second Edition
>>> vecs = np.array(mmvecs.T.copy().tolist()) >>> variables = dict(vecs=vecs, v=v) >>> dt_vectorized = timeit('v.dot(vecs)', globals=variables, number=20) >>> dt_vectorized 0.106... #1 Memory-mapped files require you to know the shape of your arrays ahead of time. It took a little more than 100 milliseconds to perform 3.2 million multiplications and additions. A total of 41,531 × 384 (1.6 million) multiplications are required to multiply the elements of the
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-3.html
EPUB SHA-256:0e9a35e49ca446e322e5524e53f39fb6bee5b2b23d9cda10ef052aca770b0b36