我是个火花新手。我用火花放电来推荐ALS。试衣只需几分钟,而且跑得相当快。然而,model.transform函数需要很长的时间,并且需要集群中更多的节点。
发布于 2018-02-28 08:48:44
是的,ALS算法的本质是矩阵乘法。首先要检查日志中是否有此类警告。
15/06/15 11:17:36 WARN BLAS: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS
15/06/15 11:17:36 WARN BLAS: Failed to load implementation from: com.github.fommil.netlib.NativeRefBLAS
15/06/15 11:17:36 WARN LAPACK: Failed to load implementation from: com.github.fommil.netlib.NativeSystemLAPACK
15/06/15 11:17:36 WARN LAPACK: Failed to load implementation from: com.github.fommil.netlib.NativeRefLAPACK如果您这样做了,您可能应该添加外部线性代数库作为依赖项。请参阅此指南
https://stackoverflow.com/questions/49022520
复制相似问题