diff --git a/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt b/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt index dbf1972f6a..bc52e2665d 100644 --- a/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt +++ b/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt @@ -82,6 +82,12 @@ abstract class AbstractProbabilistic400EndpointModel( return } + if (modelKeys != null && dimension != null) { + require(warmup > 0) { "Warmup must be positive" } + initialized = true + return + } + val encoder = InputEncoderUtilWrapper(input, encoderType = encoderType) val allParamsPathsAndEncodedValues = encoder.getAllParamsPathsAndEncodedValues()