Menu

#417 Whistle Classifier hangs Pamguard when Random Forest is selected as classifier type

Approved
open
nobody
None
5
2019-02-27
2019-02-27
Michael
No

If a Random Forest is selected as the classifier type, Pamguard hangs when trying to save the settings to the database. The problem is that the random forest object is huge, and everything comes to a stop trying to convert to a byte array for storage. Pamguard gets hung up in generalDatabase.LogSettings.logSettings on line 101 (buffer.toByteArray method). The other 3 classifiers do not cause this problem.
Potential solution is to save the classifier into a separate file, and then just save the path information into the settings. This is how Rocca handles it's random forest classifier objects

Discussion

MongoDB Logo MongoDB