You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2021/11/21 13:51:00 UTC

[jira] [Created] (SPARK-37431) pyspark.{ml, mllib}.linalg.Vector API

Maciej Szymkiewicz created SPARK-37431:
------------------------------------------

             Summary: pyspark.{ml, mllib}.linalg.Vector API
                 Key: SPARK-37431
                 URL: https://issues.apache.org/jira/browse/SPARK-37431
             Project: Spark
          Issue Type: Improvement
          Components: ML, MLlib, PySpark
    Affects Versions: 3.3.0
            Reporter: Maciej Szymkiewicz


At the moment both {{Vector}} implementations have minimal API. {{mllib}}

{code:python}
class Vector(object):
    __UDT__ = ....
    def toArray(self): ...
    def asML(self): ...
{code}

{{ml}}

{code:python}
class Vector(object):
    __UDT__ = ...
    def toArray(self): ...

{code}

which doesn't cover actual API being used.

This causes typing issues, when we expect any {{Vector}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org