Save Spark org.apache.spark.mllib.linalg.Matrix to a file

前端 未结 4 1181
-上瘾入骨i
-上瘾入骨i 2021-01-03 03:29

The result of correlation in Spark MLLib is a of type org.apache.spark.mllib.linalg.Matrix. (see http://spark.apache.org/docs/1.2.1/mllib-statistics.html#correlations)

4条回答
  •  情书的邮戳
    2021-01-03 04:13

    As Matrix is Serializable, you can write it using normal Scala.

    You can find an example here.

提交回复
热议问题