Memory error in python using numpy array

后端 未结 1 567
自闭症患者
自闭症患者 2021-01-28 06:15

I am getting the following error for this code:

model = lda.LDA(n_topics=15, n_iter=50, random_state=1)
model.fit(X)
topic_word = model.topic_word_
print(\"type(         


        
相关标签:
1条回答
  • 2021-01-28 06:54

    If your arrays are too large for RAM, use numpy.memmap. See http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.memmap.html

    0 讨论(0)
提交回复
热议问题