Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: rif <rif@xxxxxxx>
- Date: 08 Nov 2006 10:26:21 -0500
"Alex Mizrahi" <udodenko@xxxxxxxxxxxxxxxxxxxxx> writes:
(message (Hello 'rif)
(you :wrote :on '(07 Nov 2006 16:56:17 -0500))
(
r> Why would you want a CL implementation of SVD?
i'm now using Armed Bear Common Lisp that can easily FFI only Java.
so far i'm only experimenting, so i'd rather make implementation fast, then
make fast implementation. i can use optimized implementation afterwards.
cl-mathstats' implementation in ABCL solves 100x100 SVD in 7 seconds, i
think it's 100 times slower than native one, but it's quite satisfying for
experiments.
There's an automatically generated (f2j) version of LAPACK available
for java. Haven't used it, but it might help you. This and other
java linear algebra packages (including somet that do SVD) are linked from:
http://math.nist.gov/javanumerics/
r> An SVD is pretty hard to get right,
cl-mathstats just copies "numerical recipes" C code, i hope it's a correct
one.
I cannot speak for SVD in particular, but "numerical recipes" is
pretty notorious for not getting right. If your matrices are
well-conditioned, it's probably not a problem. If your matrices are
troublesome, it's quite possible the numerical recipes algorithms will
break down sooner than the LAPACK ones. Of course, with matrix
factorizations, you can at least multiply the matrices back together,
check residuals, etc. to see how well you're doing.
Personally, I am always happier getting my matrix factorizations from
someone who really knew what they were doing and took the time to do
it right.
rif
.
- Follow-Ups:
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: mark.hoemmen@xxxxxxxxx
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- References:
- LSA (latent sematic analysis) in Lisp, or at least SVD
- From: Alex Mizrahi
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: Vebjorn Ljosa
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: Alex Mizrahi
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: rif
- Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- From: Alex Mizrahi
- LSA (latent sematic analysis) in Lisp, or at least SVD
- Prev by Date: Re: Social problems of lisp
- Next by Date: Re: Why is Lisp attacked on Reddit almost as often as Republicans?
- Previous by thread: Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- Next by thread: Re: LSA (latent sematic analysis) in Lisp, or at least SVD
- Index(es):
Relevant Pages
|