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
Wrap long lines (oops)
  • Loading branch information
holdenk committed Apr 9, 2014
commit dd0b7373546d7571e8b0e0c85299bf94232cc461
6 changes: 4 additions & 2 deletions core/src/main/scala/org/apache/spark/rdd/FoldedRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class FoldedRDD[T: ClassTag](
fold: Float,
folds: Float,
seed: Int)
extends PartitionwiseSampledRDD[T, T](prev, new BernoulliSampler((fold-1)/folds,fold/folds, false), seed) {
extends PartitionwiseSampledRDD[T, T](prev,
new BernoulliSampler((fold-1)/folds,fold/folds, false), seed) {
}

/**
Expand All @@ -48,5 +49,6 @@ class CompositeFoldedRDD[T: ClassTag](
fold: Float,
folds: Float,
seed: Int)
extends PartitionwiseSampledRDD[T, T](prev, new BernoulliSampler((fold-1)/folds, fold/folds, true), seed) {
extends PartitionwiseSampledRDD[T, T](prev,
new BernoulliSampler((fold-1)/folds, fold/folds, true), seed) {
}