Error fix

This commit is contained in:
Arne van Iterson 2023-10-21 14:53:53 +02:00
parent 38501bbc84
commit 533d81c020
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class CVSuiteTestKNN:
This function should not be run from within the suite
'''
if self.trained:
throw("Model already trained!")
raise EnvironmentError("Model already trained!")
else:
self.knn.train(data, cv.ml.ROW_SAMPLE, tags)
self.knn.save(output)