#include <als_vertex_program.hpp>
Public Member Functions | |
edge_dir_type | gather_edges (icontext_type &context, const vertex_type &vertex) const |
gather_type | gather (icontext_type &context, const vertex_type &vertex, edge_type &edge) const |
void | apply (icontext_type &context, vertex_type &vertex, const gather_type &sum) |
edge_dir_type | scatter_edges (icontext_type &context, const vertex_type &vertex) const |
void | scatter (icontext_type &context, const vertex_type &vertex, edge_type &edge) const |
![]() | |
virtual void | init (icontext_type &context, const vertex_type &vertex, const message_type &msg) |
Static Public Member Functions | |
static graphlab::empty | signal_left (icontext_type &context, vertex_type &vertex) |
Signal all vertices on one side of the bipartite graph. |
Static Public Attributes | |
static double | TOLERANCE = 1e-3 |
static double | LAMBDA = 0.01 |
static size_t | MAX_UPDATES = -1 |
Additional Inherited Members | |
![]() | |
typedef graph_type::vertex_data_type | vertex_data_type |
typedef graph_type::edge_data_type | edge_data_type |
typedef gather_type | gather_type |
typedef graphlab::messages::sum_priority | message_type |
typedef graph_type | graph_type |
typedef graphchi::vid_t | vertex_id_type |
typedef GraphLabVertexWrapper < vertex_data_type, edge_data_type > | vertex_type |
typedef GraphLabEdgeWrapper < vertex_data_type, edge_data_type > | edge_type |
typedef icontext< graph_type, gather_type, message_type > | icontext_type |
typedef graphlab::edge_dir_type | edge_dir_type |
ALS vertex program type
|
inlinevirtual |
apply collects the sum of XtX and Xy
Implements graphlab::ivertex_program< graph_type, gather_type, graphlab::messages::sum_priority >.
|
inlinevirtual |
The gather function computes XtX and Xy
Reimplemented from graphlab::ivertex_program< graph_type, gather_type, graphlab::messages::sum_priority >.
|
inlinevirtual |
The set of edges to gather along
Reimplemented from graphlab::ivertex_program< graph_type, gather_type, graphlab::messages::sum_priority >.
|
inlinevirtual |
Scatter reschedules neighbors
Reimplemented from graphlab::ivertex_program< graph_type, gather_type, graphlab::messages::sum_priority >.
|
inlinevirtual |
The edges to scatter along
Reimplemented from graphlab::ivertex_program< graph_type, gather_type, graphlab::messages::sum_priority >.
|
static |
The convergence tolerance