我有一个 user's
“味觉”向量:
+------+--------------------+
|userId| scaledFeatures|
+------+--------------------+
| 18|[0.0,0.0,0.0,0.0,...|
| 65|[0.0,0.0023910733...|
| 96|[0.0,0.0,0.005268...|
| 121|[0.0,0.0021253985...|
| 129|[0.0,0.0029224229...|
+------+--------------------+
以及 movie's
内容向量:
+-------+--------------------+
|movieId| scaledFeatures|
+-------+--------------------+
| 1|[1.0,0.0,0.0,0.0,...|
| 2|[1.0,0.0,0.0,0.0,...|
| 3|[0.0,0.0,0.0,0.0,...|
| 4|[0.0,0.0,0.0,0.0,...|
| 5|[0.0,0.0,0.0,0.0,...|
+-------+--------------------+
如何服用 user's
味觉矢量 userId
与…相乘 movie's
pyspark中的内容表?所以我可以通过 movieId
?
暂无答案!
目前还没有任何答案,快来回答吧!