Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
"SVM: How to write weight table"
Legacy User
I run LibSVM and get a tab 'Kernel Model'.
How do I write the content (weight table, support vector table) to a file in a tabular format?
Or alternatively, how would I decode these tables from a model XML file? Is there a documentation for that?
Thanks for any help! Stefan
Find more posts tagged with
AI Studio
Weights
SVMs
Accepted answers
All comments
IngoRM
Hi,
maybe this is enough:
just select one cell in the graphical view and press Ctrl-A (select all cells, alternatively you can select them by dragging your mouse), then press Ctrl-C (copy) and insert the contents into Excel / OpenOffice / ...
From there you can save the file. This of course does not work for automatic processes. For writing those tables into files in a fully automated fashion, you could use the Reporting Engine / Reporting Operators available in the Enterprise Edition only.
Cheers,
Ingo
Legacy User
Ingo,
thanks for the quick reply. Indeed, I'm looking for a programmatic solution to allow post-processing. So, I'm probably left with the option of looking into the XML file of the model... (Enterprise seems to create HTML and PDF only? - in any case, I wouldn't have the $$ right now
)
Btw., the .mod files lack the closure </object-stream> in RM 1.42
Kind regards Stefan
IngoRM
Hi,
an additional note: at least the JMySVM operator provides a parameter "calculate_weights" which will deliver the normal vector coefficients. A similar result can be obtained from the SVMWeighting operator. For the support vectors, you could also think of writing a new operator deriving the support vectors from the kernel model. This might be actually easier than extracting the SV from the XML file. Just a few thoughts,
Cheers,
Ingo
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups