Re: trouble calculating TF-IDF data type mismatch: '(tf * idf)' requires numeric type, not vector;

2016-01-13 Thread Andy Davidson
uot; <user@spark.apache.org> Subject: trouble calculating TF-IDF data type mismatch: '(tf * idf)' requires numeric type, not vector; > Bellow is a little snippet of my Java Test Code. Any idea how I implement > member wise vector multiplication? > > Also notice the idf valu

trouble calculating TF-IDF data type mismatch: '(tf * idf)' requires numeric type, not vector;

2016-01-13 Thread Andy Davidson
Bellow is a little snippet of my Java Test Code. Any idea how I implement member wise vector multiplication? Also notice the idf value for ŒChinese¹ is 0.0? The calculation is ln((4+1) / (6/4 + 1)) = ln(2) = 0.6931 ?? Also any idea if this code would work in a pipe line? I.E. Is the pipeline