GraphChi  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros
Public Member Functions | Public Attributes | Static Public Attributes
vertex_data Struct Reference

the vertex data type which contains the latent factor. More...

#include <als_vertex_program.hpp>

List of all members.

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.

Detailed Description

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.


Member Data Documentation

vec_type vertex_data::factor

how much the latent value has changed

The latent factor for this vertex


The documentation for this struct was generated from the following files: