LibSVM (svm-rfe)

Hi,

I think, something like this will do the job:
pd.DataFrame({'Variables': X.columns, 'Coefficients': classifier.coef_[0]})
(assuming you have a binary classification problem and your inputs have the target column in a form of string labels).

The output values are what they are. There can be many reasons for the behaviour that you observe: for example, coefficients might be smaller that the displayed precision in KNIME tables (you can improve by Right click on column name in the output table -> Available Renderers -> Full Precision) or many of variables are irrelevant for the target or the regularisation strength C is too high for your problem. Understanding those coefficients is a task specific to your particular use-case.

Cheers,
Misha

3 Likes