Skip to content

Commit 984ac8f

Browse files
committed
update
1 parent d2e8847 commit 984ac8f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mllib-dal/src/main/scala/com/intel/oap/mllib/stat/CorrelationDALImpl.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,12 @@ class CorrelationDALImpl(
133133
}
134134
ret
135135
}.collect()
136+
// Make sure there is only one result from rank 0
137+
assert(results.length == 1)
136138
logInfo(s"CorrelationDAL compute end")
137139
corTimer.record("Training")
138140
corTimer.print()
139141

140-
// Make sure there is only one result from rank 0
141-
assert(results.length == 1)
142-
143142
val correlationMatrix = results(0)
144143

145144
correlationMatrix

0 commit comments

Comments
 (0)