@@ -56,9 +56,9 @@ class LDASuite extends FunSuite with SharedSparkContext {
56
56
println((System .currentTimeMillis() - startedAt) / 1e3 )
57
57
pps.foreach(println)
58
58
59
- val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => lhs - rhs }
59
+ val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => rhs - lhs }
60
60
assert(ppsDiff.count(_ > 0 ).toDouble / ppsDiff.length > 0.6 )
61
- assert(pps.head - pps.last > 0 )
61
+ assert(pps.last - pps.head > 0 )
62
62
63
63
val ldaModel = lda.toLDAModel
64
64
val tempDir = Files .createTempDir()
@@ -105,9 +105,9 @@ class LDASuite extends FunSuite with SharedSparkContext {
105
105
println((System .currentTimeMillis() - startedAt) / 1e3 )
106
106
pps.foreach(println)
107
107
108
- val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => lhs - rhs }
108
+ val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => rhs - lhs }
109
109
assert(ppsDiff.count(_ > 0 ).toDouble / ppsDiff.length > 0.6 )
110
- assert(pps.head - pps.last > 0 )
110
+ assert(pps.last - pps.head > 0 )
111
111
112
112
val ldaModel = lda.toLDAModel.toLocalLDAModel
113
113
data.collect().foreach { case (_, sv) =>
@@ -139,9 +139,9 @@ class LDASuite extends FunSuite with SharedSparkContext {
139
139
println((System .currentTimeMillis() - startedAt) / 1e3 )
140
140
pps.foreach(println)
141
141
142
- val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => lhs - rhs }
142
+ val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => rhs - lhs }
143
143
assert(ppsDiff.count(_ > 0 ).toDouble / ppsDiff.length > 0.6 )
144
- assert(pps.head - pps.last > 0 )
144
+ assert(pps.last - pps.head > 0 )
145
145
146
146
val ldaModel = lda.toLDAModel.toLocalLDAModel
147
147
data.collect().foreach { case (_, sv) =>
@@ -173,9 +173,9 @@ class LDASuite extends FunSuite with SharedSparkContext {
173
173
println((System .currentTimeMillis() - startedAt) / 1e3 )
174
174
pps.foreach(println)
175
175
176
- val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => lhs - rhs }
176
+ val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => rhs - lhs }
177
177
assert(ppsDiff.count(_ > 0 ).toDouble / ppsDiff.length > 0.6 )
178
- assert(pps.head - pps.last > 0 )
178
+ assert(pps.last - pps.head > 0 )
179
179
180
180
val ldaModel = lda.toLDAModel.toLocalLDAModel
181
181
data.collect().foreach { case (_, sv) =>
@@ -207,9 +207,9 @@ class LDASuite extends FunSuite with SharedSparkContext {
207
207
println((System .currentTimeMillis() - startedAt) / 1e3 )
208
208
pps.foreach(println)
209
209
210
- val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => lhs - rhs }
210
+ val ppsDiff = pps.init.zip(pps.tail).map { case (lhs, rhs) => rhs - lhs }
211
211
assert(ppsDiff.count(_ > 0 ).toDouble / ppsDiff.length > 0.6 )
212
- assert(pps.head - pps.last > 0 )
212
+ assert(pps.last - pps.head > 0 )
213
213
214
214
val ldaModel = lda.toLDAModel.toLocalLDAModel
215
215
data.collect().foreach { case (_, sv) =>
0 commit comments