1. 기존의 

 

2.scikitlearn n_jobs를 이용하는 방법 

https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.pairwise_kernels.html

 

sklearn.metrics.pairwise.pairwise_kernels

 

scikit-learn.org

3. numpy product를 이용하는 방법

https://stackoverflow.com/questions/34890861/how-to-run-a-large-matrix-for-cosine-similarity-in-python

 

How to run a large matrix for cosine similarity in Python?

I want to calculate cosine similarity between articles. And I am running into the problem that my implementation approach would take a long time for the size of the data that I am going to run. from

stackoverflow.com

 

 

 

 

 

반응형

+ Recent posts