[Senseclusters-users] Updated svdpackout.pl
Status: Beta
Brought to you by:
tpederse
|
From: ted p. <tpederse@d.umn.edu> - 2006-11-30 00:16:41
|
Hi Ted and other SenseClusters folks,
I've updated the svdpackout.pl file so that I can extract the
component U, S, and V' (V-transpose) matrices rather than only being
able to extract the reconstructed matrix or the rows-only.
I've attached my version to this message. Feel free to use it as you
see fit.
Here's a brief changelog:
* Added feature to output the component U, S, and V' matrices.
* Added a new command-line option "--output" with three options:
reconstruct - reconstructs the rank-k matrix (default)
rowonly - same as --rowonly
components - output U, S, V' matrices to U.txt, S.txt, VT.txt
* Added a new command-line option "--negatives":
Allows negative values; otherwise all negative values are set
to 0 (except in component output).
* New options maintain backward compatibility
* Updated the documentation.
* Passes all tests (testA1-A4,B1-B2)
Hope this helps you -- it helped my students!
As an aside -- and I'd be happy to post this to the main newsgroup if
you'd rather -- what is the purpose of the "rowonly" feature? Why do
you multiply U by the sqrt of the S values? Is there some
theoretical reason to do this?
Thanks!
-Rich
--
Richard Wicentowski
Assistant Professor
Computer Science Department
Swarthmore College
(610) 690-5643
|