You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhance SimpleSVM wrapper to support model loading and saving #8558
In PR #8557, we attempted to make LibSVM a private dependency. However, svm_model is currently exposed in the public header FeatureFindingMetabo.h, which prevents LibSVM from being made private.
Refactor FeatureFindingMetabo to use the SimpleSVM wrapper instead of directly using LibSVM types. This requires enhancing SimpleSVM to support model serialization and deserialization.
Required SimpleSVM Enhancements
Currently, SimpleSVM only supports:
Training new models via setup()
Prediction with probability estimates via predict()
FeatureFindingMetabo needs:
Loading pre-trained SVM models from files
Prediction without probability estimates (or confirmation that existing API supports this)
Proper model lifecycle management
Expected Outcome
Once SimpleSVM supports model loading/saving, FeatureFindingMetabo can be refactored to use it, properly encapsulating LibSVM and allowing it to become a private dependency as intended in PR #8557.
I’m planning to work on this by first extending SimpleSVM with model load/save support and clarifying prediction without probabilities, so that FeatureFindingMetabo no longer needs to expose svm_model.
Then FeatureFindingMetabo can be refactored to use SimpleSVM, which should allow LibSVM to become a private dependency.
Happy to adjust the approach if there are preferred patterns or conventions I should follow.
Activity
VaishnaviOnPC commentedon Jan 11, 2026
Hi @jpfeuffer , I am interested in this issues.
I’m planning to work on this by first extending SimpleSVM with model load/save support and clarifying prediction without probabilities, so that FeatureFindingMetabo no longer needs to expose svm_model.
Then FeatureFindingMetabo can be refactored to use SimpleSVM, which should allow LibSVM to become a private dependency.
Happy to adjust the approach if there are preferred patterns or conventions I should follow.
jpfeuffer commentedon Jan 11, 2026
Sure. You might need to check multiple times along the way if this approach is the right one.
It sounds reasonable.
jpfeuffer commentedon Jan 11, 2026
Sure. You might need to check multiple times along the way if this approach is the right one.
It sounds reasonable.
fix: made libSVM a private dependency via SimpleSVM (OpenMS#8558)
Make LibSVM a private CMake dependency (OpenMS#8547, OpenMS#8558)
Make LibSVM a private CMake dependency (#8547, #8558) (#9701)