How to get cosine similarity scores for all users and all the items in PySpark, if user's and item's embeddings are given?

后端 未结 0 1852
自闭症患者
自闭症患者 2020-12-22 17:02

I have a users df-

df1 = spark.createDataFrame([
    ("u1", [0., 2., 3.]),
    ("u2", [1., 0., 0.]),
    ("u3", [0., 0., 3.]),
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题