Generalized Matrix FactorizationThere is no shortage of algorithms for matrix factorization, however, most of them do not provide support for hidden elements and for multiple elements in each matrix cell.In general case we may not know all elements of the matrix and also have multiple elements for a particular cell. Let us look at the data below. It is sort of 3d matrix that has three approximately equal layers, so we have 3 elements for each row-column combination, but there are two row-column combinations, for which we do not have data at all. But we still want to find decomposition in a form of two matrices, that when multiplied produce some product close to each of these layers.
With suggested under link at the top algorithm we found cofactors and the product of them shown below.
The credit goes to someone under name S.Funk, who published this procedure several years ago for two dimensional matrices, and my role is reduced to generalization it into 3d matrices with approximately equal layers. The impressive part of this algorithm is that (at the core) it needs only few lines of code. Andrew Polar, Jan, 2017. |