Graph traversal 3. Cycle relationship needs to be converted into geometric series formula in order to be correctly calculated. Foo Bar A B C 33% 34% 50% 33% 50%
Numpy quirks File
"/usr/local/lib/python2.7/dist-‐packages/scipy/linalg/decomp_svd.py",
line
103,
in
svd
raise
LinAlgError("SVD
did
not
converge")
numpy.linalg.linalg.LinAlgError:
SVD
did
not
converge • SVD does not converge.
• Moore-Penrose pseudo-inverse make use of SVD. By definition, you can always find SVD.
• Numpy has low iteration limit hard-coded into its source code.
• Will raise SVD did not converge if failed to converge within this iteration limit.
Algorithm - Limiting the n • Reducing memory usage
• Reducing CPU utilization n x n n depends on the total companies/shareholders. Assuming n is 50,000. 50,000 x 50,000 x 8 bytes = 160Gb of memory usage just to hold data into memory. A =
Algorithm - Limiting the n Lots of cyclic nodes } Matrix approach } Use normal approach for each connected component since linear multiplication between nodes are trivial in CPU cost Lots of cyclic nodes