Skip to content

Access vectors #6

Description

@indajuan

Hi,
I managed to import the csv.txt file in a Array[(org.apache.spark.mllib.linalg.Vector, String)] form.
for example doing: iris(0)
I obtain:
iris(0) = ([5.4,3.9,1.7,0.4],Iris-setosa)

How can I access my tuple to get the values inside the vector and to get the string (all inside the map environment)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions