April 2017
Intermediate to advanced
532 pages
12h 39m
English
We will examine the singular values obtained from computing the SVD on our image data. We can verify that the singular values are the same for each run, and that they are returned in a decreasing order, as follows:
val sValues = (1 to 5).map { i => matrix.computeSVD(i, computeU = false).s } sValues.foreach(println)
This last code should generate an output similar to the following:
[54091.00997110354][54091.00997110358,33757.702867982436][54091.00997110357,33757.70286798241,24541.193694775946][54091.00997110358,33757.70286798242,24541.19369477593, 23309.58418888302][54091.00997110358,33757.70286798242,24541.19369477593, 23309.584188882982,21803.09841158358]
Read now
Unlock full access