Hi,

Thanks for the reply. I tried Matrix.toBreeze() which returns the following error:

*/method toBreeze in trait Matrix cannot be accessed in org.apache.spark.mllib.linalg.Matrix/*


On Thursday 20 August 2015 07:50 PM, Burak Yavuz wrote:
Matrix.toBreeze is a private method. MLlib matrices have the same structure as Breeze Matrices. Just create a new Breeze matrix like this <https://github.com/apache/spark/blob/43e0135421b2262cbb0e06aae53523f663b4f959/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala#L270>.

Best,
Burak


On Thu, Aug 20, 2015 at 3:28 AM, Yanbo Liang <[email protected] <mailto:[email protected]>> wrote:

    You can use Matrix.toBreeze()
    
<https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala#L56>
 .

    2015-08-20 18:24 GMT+08:00 Naveen <[email protected]
    <mailto:[email protected]>>:

        Hi All,

        Is there anyway to convert a mllib matrix to a Dense Matrix of
        Breeze? Any leads are appreciated.


        Thanks,
        Naveen

        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [email protected]
        <mailto:[email protected]>
        For additional commands, e-mail: [email protected]
        <mailto:[email protected]>




Reply via email to