Re: Read file and represent rows as Vectors

2017-04-05 Thread Yan Facai
parse(vocab_size, Seq((133, 3.0 > > > The problem is that I am not quite sure how to read the .txt.gz file as RDD > and create an Array of sparse vectors as described above. Please note that > I > actually want to pass the data array in the PCA transformer. > > > >

Re: Read file and represent rows as Vectors

2017-04-03 Thread Paul Tremblay
t to pass the data array in the PCA transformer. > > > > -- > View this message in context: http://apache-spark-user-list. > 1001560.n3.nabble.com/Read-file-and-represent-rows-as-Vectors-tp28562.html > Sent from the Apache Spark User List mailing list archive at Nabble.

Read file and represent rows as Vectors

2017-04-03 Thread Old-School
/Read-file-and-represent-rows-as-Vectors-tp28562.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe e-mail: user-unsubscr...@spark.apache.org