Skip to content

Commit

Permalink
CHORE: Remove print statements from RF reproducibility test (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickEdwards7502 committed Sep 19, 2024
1 parent dd32e0f commit 769ce76
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ class ReproducibilityTest extends SparkTest {
val rfModel1 = RFModelTrainer.trainModel(features, label, params, 40, 20)
val impAnalysis1 = new ImportanceAnalysis(sqlContext, features, rfModel1)
val topVariables1 = impAnalysis1.importantVariables(20, false)
topVariables1.foreach(println)
println()
val rfModel2 = RFModelTrainer.trainModel(features, label, params, 40, 20)
val impAnalysis2 = new ImportanceAnalysis(sqlContext, features, rfModel2)
val topVariables2 = impAnalysis2.importantVariables(20, false)
topVariables2.foreach(println)
topVariables1.zip(topVariables2).foreach { p => assertEquals(p._1, p._2) }
}
}

0 comments on commit 769ce76

Please sign in to comment.