You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by wi...@gmail.com on 2017/06/07 16:17:45 UTC

user-unsubscribe@spark.apache.org

user-unsubscribe@spark.apache.org

user-unsubscribe@spark.apache.org

From: kundan kumar [mailto:iitr.kundan@gmail.com] 
Sent: Wednesday, June 7, 2017 4:01 AM
To: spark users <us...@spark.apache.org>
Subject: Convert the feature vector to raw data

 

I am using 

 

Dataset<Row> result = model.transform(testData).select("probability", "label","features");

 result.show(1000, false);

 

In this case the feature vector is being printed as output. Is there a way that my original raw data gets printed instead of the feature vector OR is there a way to reverse extract my raw data from the feature vector. All of the features that my dataset have is categorical in nature.

 

Thanks,

Kundan