@@ -50,18 +50,23 @@ object driver {
50
50
val nExecutors = options.getOrElse(" nExecutors" ," 1" ).toInt
51
51
// training input path
52
52
val trainingDatafile =
53
- options.getOrElse(" trainingDatafile" , " ../data/climate-serialized/climate-train-colwise/" )
53
+ options.getOrElse(" trainingDatafile" , " ../data/dogs_vs_cats-serialized/dogs_vs_cats_small_train-colwise/" )
54
+ // options.getOrElse("trainingDatafile", "../data/climate-serialized/climate-train-colwise/")
54
55
// test input path
55
56
val testDatafile =
56
- options.getOrElse(" testDatafile" , " ../data/climate-serialized/climate-test-colwise/" )
57
+ options.getOrElse(" testDatafile" , " ../data/dogs_vs_cats-serialized/dogs_vs_cats_small_test-colwise/" )
58
+ // options.getOrElse("testDatafile", "../data/climate-serialized/climate-test-colwise/")
57
59
// response vector - training
58
60
val responsePathTrain =
59
- options.getOrElse(" responsePathTrain" , " ../data/climate-serialized/climate-responseTrain.txt" )
61
+ options.getOrElse(" responsePathTrain" , " ../data/dogs_vs_cats-serialized/dogs_vs_cats_small_train-responseTrain.txt" )
62
+ // options.getOrElse("responsePathTrain", "../data/climate-serialized/climate-responseTrain.txt")
60
63
// response vector - test
61
64
val responsePathTest =
62
- options.getOrElse(" responsePathTest" , " ../data/climate-serialized/climate-responseTest.txt" )
65
+ options.getOrElse(" responsePathTest" , " ../data/dogs_vs_cats-serialized/dogs_vs_cats_small_test-responseTest.txt" )
66
+ // options.getOrElse("responsePathTest", "../data/climate-serialized/climate-responseTest.txt")
63
67
// number of features
64
- val nFeatsPath = options.getOrElse(" nFeats" , " ../data/climate-serialized/climate-nFeats.txt" )
68
+ val nFeatsPath = options.getOrElse(" nFeats" , " ../data/dogs_vs_cats-serialized/dogs_vs_cats_small_train-nFeats.txt" )
69
+ // options.getOrElse("nFeats", "../data/climate-serialized/climate-nFeats.txt")
65
70
// random seed
66
71
val randomSeed = options.getOrElse(" seed" , " 3" ).toInt
67
72
// shall sparse data structures be used?
@@ -70,9 +75,9 @@ object driver {
70
75
// 2) specify algorithm, loss function, and optimizer (if applicable)
71
76
72
77
// specify whether classification or ridge regression shall be used
73
- val classification = options.getOrElse(" classification" , " false " ).toBoolean
78
+ val classification = options.getOrElse(" classification" , " true " ).toBoolean
74
79
// number of iterations used in SDCA
75
- val numIterations = options.getOrElse(" numIterations" , " 20000 " ).toInt
80
+ val numIterations = options.getOrElse(" numIterations" , " 5000 " ).toInt
76
81
// set duality gap as convergence criterion
77
82
val stoppingDualityGap = options.getOrElse(" stoppingDualityGap" , " 0.01" ).toDouble
78
83
// specify whether duality gap as convergence criterion shall be used
@@ -83,23 +88,23 @@ object driver {
83
88
// specify projection (sparse or SDCT)
84
89
val projection = options.getOrElse(" projection" , " SDCT" )
85
90
// specify projection dimension
86
- val nFeatsProj = options.getOrElse(" nFeatsProj" , " 389 " ).toInt
91
+ val nFeatsProj = options.getOrElse(" nFeatsProj" , " 200 " ).toInt
87
92
// concatenate or add
88
93
val concatenate = options.getOrElse(" concatenate" , " false" ).toBoolean
89
94
// cross validation
90
95
val CV = options.getOrElse(" CV" , " false" ).toBoolean
91
96
// k for k-fold CV
92
- val kfold = options.getOrElse(" kfold" , " 2 " ).toInt
97
+ val kfold = options.getOrElse(" kfold" , " 5 " ).toInt
93
98
// regularization parameter sequence start used in CV
94
- val lambdaSeqFrom = options.getOrElse(" lambdaSeqFrom" , " 1" ).toDouble
99
+ val lambdaSeqFrom = options.getOrElse(" lambdaSeqFrom" , " 0. 1" ).toDouble
95
100
// regularization parameter sequence end used in CV
96
- val lambdaSeqTo = options.getOrElse(" lambdaSeqTo" , " 10 " ).toDouble
101
+ val lambdaSeqTo = options.getOrElse(" lambdaSeqTo" , " 5 " ).toDouble
97
102
// regularization parameter sequence step size used in CV
98
- val lambdaSeqBy = options.getOrElse(" lambdaSeqBy" , " 1" ).toDouble
103
+ val lambdaSeqBy = options.getOrElse(" lambdaSeqBy" , " . 1" ).toDouble
99
104
// create lambda sequence
100
105
val lambdaSeq = lambdaSeqFrom to lambdaSeqTo by lambdaSeqBy
101
106
// regularization parameter to be used if CVKind == "none"
102
- val lambda = options.getOrElse(" lambda" , " 95 " ).toDouble
107
+ val lambda = options.getOrElse(" lambda" , " 4.4 " ).toDouble
103
108
104
109
// print out inputs
105
110
println(" \n Specify input and output options: " )
0 commit comments