You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Nick Pentreath (JIRA)" <ji...@apache.org> on 2016/09/09 17:33:21 UTC

[jira] [Commented] (SYSTEMML-903) [Python API] Sparse to dense conversion is not yet implemented

    [ https://issues.apache.org/jira/browse/SYSTEMML-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477670#comment-15477670 ] 

Nick Pentreath commented on SYSTEMML-903:
-----------------------------------------

cc [~deron] [~niketanpansare]

> [Python API] Sparse to dense conversion is not yet implemented
> --------------------------------------------------------------
>
>                 Key: SYSTEMML-903
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-903
>             Project: SystemML
>          Issue Type: Bug
>            Reporter: Nick Pentreath
>
> Hitting this exception when doing something (admittedly trivial) in Python API, following on from the website example code:
> {code}
> import numpy as np
> from sklearn import datasets
> import systemml as sml
> from pyspark.sql import SQLContext
> # Load the diabetes dataset
> diabetes = datasets.load_diabetes()
> # Use only one feature
> diabetes_X = diabetes.data[:, np.newaxis, 2]
> ## -- End pasted text --
> In [16]: X = sml.matrix(diabetes_X)
> In [17]: diff = X - X
> In [18]: diff.toNumPyArray()
> {code}
> Throws:
> {code}
> Py4JJavaError: An error occurred while calling z:org.apache.sysml.runtime.instructions.spark.utils.RDDConverterUtilsExt.convertMBtoPy4JDenseArr.
> : org.apache.sysml.runtime.DMLRuntimeException: Sparse to dense conversion is not yet implemented
>        	at org.apache.sysml.runtime.instructions.spark.utils.RDDConverterUtilsExt.convertMBtoPy4JDenseArr(RDDConverterUtilsExt.java:373)
>        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        	at java.lang.reflect.Method.invoke(Method.java:498)
>        	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
>        	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:381)
>        	at py4j.Gateway.invoke(Gateway.java:259)
>        	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
>        	at py4j.commands.CallCommand.execute(CallCommand.java:79)
>        	at py4j.GatewayConnection.run(GatewayConnection.java:209)
>        	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)