데이터 집합이 있고 두 번째 numpy 배열로 변환해야합니다. 데이터는 내가 어떻게 그것을 구현해야 그것은이2D numpy 배열로 데이터를 생성하는 방법
doc1 doc2 doc3....
term1 1 5 6
term2 0 4 1
term3 6 8 10
.
.
같은 2D NumPy와 배열에 있어야 할
term = which contains the words
document_number= which has the doc number
tf-idf= which contain the tf-idf of each word with respect to doc in ordered manner
처럼?
도움을 얻기 위해 더 많은 정보를 입력해야합니다. – Hammer
['numpy.matrix'] (http://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix)를 의미합니까? .html)? – Menno
또한 pandas DataFrames를 확인하십시오. http://pandas.pydata.org/pandas-docs/stable/dsintro.html#dataframe –