Weighted Classification with LibSVM


I have an unbalanced dataset, and want to use the LibSVM feature (’-w’ command line option) of providing weights for the classes to balance the data.

The problem is that the KNIME LibSVM node does not provide this feature. The Weka wrapper however does provide a field in which to enter the class weights, but this Weka classifier is not provided in KNIME.

My question: What is the best way to modify the KNIME node to add this one feature? I obviously do not want to re-write the existing KNIME wrapper of LibSVM just to be able to access this feature. Would it help to extend the KNIME node?