Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added documentation comments

  • Loading branch information...
commit 0a1d262e36a83ac8938f0037df24589495412643 1 parent dcf969c
@mallamanis authored
Showing with 18 additions and 2 deletions.
  1. +18 −2 src/gr/auth/ee/lcs/FoldEvaluator.java
View
20 src/gr/auth/ee/lcs/FoldEvaluator.java
@@ -43,15 +43,31 @@
*/
public class FoldEvaluator {
+ /**
+ * An inner class representing a fold of training. To be run as a thread
+ *
+ * @author Miltiadis Allamanis
+ *
+ */
private final class FoldRunnable implements Runnable {
private final int metricOptimizationIndex;
private final int i;
private final int numOfFoldRepetitions;
- private FoldRunnable(int metricOptimizationIndex, int i,
+ /**
+ * Constructor
+ *
+ * @param metricOptimizationIndex
+ * the index of the metric to optimize on
+ * @param nFold
+ * the fold number
+ * @param numOfFoldRepetitions
+ * the number of repetitions to perform
+ */
+ private FoldRunnable(int metricOptimizationIndex, int nFold,
int numOfFoldRepetitions) {
this.metricOptimizationIndex = metricOptimizationIndex;
- this.i = i;
+ this.i = nFold;
this.numOfFoldRepetitions = numOfFoldRepetitions;
}
Please sign in to comment.
Something went wrong with that request. Please try again.