Skip to content

Commit 74b24c7

Browse files
Reduce reservoir size in KNN and KDE
1 parent 8a091e3 commit 74b24c7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/kde/KDE400Classifier.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class KDE400Classifier(
99
warmup: Int,
1010
encoderType: EMConfig.EncoderType,
1111
metricType: EMConfig.AIClassificationMetrics,
12-
private val maxStoredSamples: Int = 10_000,
12+
private val maxStoredSamples: Int = 1000, // Values more than 1000 make the classification very time-consuming
1313
randomness: Randomness
1414
) : AbstractProbabilistic400Classifier<KDE400EndpointModel>(
1515
warmup, encoderType, metricType, randomness) {

core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/kde/KDE400EndpointModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class KDE400EndpointModel (
2828
dimension: Int? = null,
2929
encoderType: EMConfig.EncoderType,
3030
metricType: EMConfig.AIClassificationMetrics,
31-
private val maxStoredSamples: Int = 10_000,
31+
private val maxStoredSamples: Int = 1000, // Values more than 1000 make the classification very time-consuming
3232
randomness: Randomness
3333
): AbstractProbabilistic400EndpointModel(
3434
endpoint, warmup, dimension, encoderType, metricType, randomness) {

core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/knn/KNN400Classifier.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class KNN400Classifier(
1111
encoderType: EMConfig.EncoderType,
1212
metricType: EMConfig.AIClassificationMetrics,
1313
private val k: Int = 3,
14-
private val maxStoredSamples: Int = 10000,
14+
private val maxStoredSamples: Int = 1000, // Values more than 1000 make the classification very time-consuming
1515
randomness: Randomness
1616
) : AbstractProbabilistic400Classifier<KNN400EndpointModel>(
1717
warmup, encoderType, metricType, randomness) {

core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/knn/KNN400EndpointModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class KNN400EndpointModel (
2424
encoderType: EMConfig.EncoderType,
2525
metricType: EMConfig.AIClassificationMetrics,
2626
private val k: Int = 3,
27-
private val maxStoredSamples: Int = 10000,
27+
private val maxStoredSamples: Int = 1000, // Values more than 1000 make the classification very time-consuming
2828
randomness: Randomness
2929
): AbstractProbabilistic400EndpointModel(
3030
endpoint, warmup, dimension, encoderType, metricType, randomness) {

0 commit comments

Comments
 (0)