the vertex data type which contains the latent factor. More...
#include <als_vertex_program.hpp>
Public Member Functions | |
vertex_data () | |
Simple default constructor which randomizes the vertex data. | |
void | randomize () |
Randomizes the latent factor. |
Public Attributes | |
uint32_t | nupdates |
The number of times this vertex has been updated. | |
float | residual |
The most recent L1 change in the factor value. | |
vec_type | factor |
how much the latent value has changed |
Static Public Attributes | |
static size_t | NLATENT = 5 |
A shared "constant" that specifies the number of latent values to use. |
the vertex data type which contains the latent factor.
Each row and each column in the matrix corresponds to a different vertex in the ALS graph. Associated with each vertex is a factor (vector) of latent parameters that represent that vertex. The goal of the ALS algorithm is to find the values for these latent parameters such that the non-zero entries in the matrix can be predicted by taking the dot product of the row and column factors.
vec_type vertex_data::factor |
how much the latent value has changed
The latent factor for this vertex