Skip to content

Commit

Permalink
Change code comments per review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
staple committed Sep 25, 2014
1 parent 7cca1dc commit a7a0f99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class KMeans private (
def run(data: RDD[Vector]): KMeansModel = {

if (data.getStorageLevel == StorageLevel.NONE) {
// Warn when running an iterative algorithm on uncached data. SPARK-1484
logWarning("The input data is not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
}
Expand All @@ -134,6 +133,7 @@ class KMeans private (
val model = runBreeze(breezeData)
norms.unpersist()

// Warn at the end of the run as well, for increased visibility.
if (data.getStorageLevel == StorageLevel.NONE) {
logWarning("The input data was not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ class RowMatrix(
(sigmaSquaresFull, uFull)
case SVDMode.DistARPACK =>
if (rows.getStorageLevel == StorageLevel.NONE) {
// Warn when running an iterative algorithm on uncached data. SPARK-1484
logWarning("The input data is not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
}
Expand Down Expand Up @@ -262,6 +261,7 @@ class RowMatrix(
logWarning(s"Requested $k singular values but only found $sk nonzeros.")
}

// Warn at the end of the run as well, for increased visibility.
if (computeMode == SVDMode.DistARPACK && rows.getStorageLevel == StorageLevel.NONE) {
logWarning("The input data was not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel]
def run(input: RDD[LabeledPoint], initialWeights: Vector): M = {

if (input.getStorageLevel == StorageLevel.NONE) {
// Warn when running an iterative algorithm on uncached data. SPARK-1484
logWarning("The input data is not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
}
Expand Down Expand Up @@ -230,6 +229,7 @@ abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel]
weights = scaler.transform(weights)
}

// Warn at the end of the run as well, for increased visibility.
if (input.getStorageLevel == StorageLevel.NONE) {
logWarning("The input data was not directly cached, which may hurt performance if its"
+ " parent RDDs are also uncached.")
Expand Down

0 comments on commit a7a0f99

Please sign in to comment.