Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the test, we should be looking at the second element instead
  • Loading branch information
holdenk committed Apr 10, 2014
commit e84f2fca08fd07511e107828e15896a93c80b10b
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class MLUtilsSuite extends FunSuite with LocalSparkContext {
"Each training+validation set combined should contain all of the data.")
}
// K fold cross validation should only have each element in the validation set exactly once
assert(foldedRdds.map(_._1).reduce((x,y) => x.union(y)).collect().sorted ===
assert(foldedRdds.map(_._2).reduce((x,y) => x.union(y)).collect().sorted ===
data.collect().sorted)
}
}
Expand Down