Skip to content

Commit 0b252a0

Browse files
committed
Merge pull request jegonzal#97 from dbickson/master
finally removed transform_vertices call
2 parents 343704a + 0905c0f commit 0b252a0

File tree

1 file changed

+4
-4
lines changed
  • toolkits/collaborative_filtering

1 file changed

+4
-4
lines changed

toolkits/collaborative_filtering/math.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,8 @@ gather_type map_reduce_ortho(const graph_type::vertex_type & vertex){
817817
BEGIN_TRACEPOINT(orth1);
818818
alphas = pgraph->map_reduce_vertices<gather_type>(map_reduce_ortho, nodes);
819819
END_TRACEPOINT(orth1);
820-
pgraph->transform_vertices(transform_ortho, nodes);
821-
//mat[_curoffset] = mat[_curoffset].orthogonalize();
820+
//pgraph->transform_vertices(transform_ortho, nodes);
821+
mat[_curoffset] = mat[_curoffset].orthogonalize();
822822
} //for ortho_repeast
823823
}
824824

@@ -833,8 +833,8 @@ gather_type map_reduce_ortho(const graph_type::vertex_type & vertex){
833833
if (alpha >= 1e-10 ){
834834
INITIALIZE_TRACER(orth3, "transform_vertices in ortho3");
835835
BEGIN_TRACEPOINT(orth3);
836-
pgraph->transform_vertices(divide_by_sum, nodes);
837-
//mat[_curoffset] = mat[_curoffset] / alpha;
836+
//pgraph->transform_vertices(divide_by_sum, nodes);
837+
mat[_curoffset] = mat[_curoffset] / alpha;
838838
END_TRACEPOINT(orth3);
839839
}
840840
END_TRACEPOINT(orthogonalize_vs_alltrace);

0 commit comments

Comments
 (0)