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)?
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)?