Skip to content

Commit

Permalink
new experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
kfoynt committed Sep 28, 2019
1 parent 636c0d0 commit 735dabb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions localgraphclustering/src/lib/proxl1PRrand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,17 @@ vtype graph<vtype,itype>::proxl1PRrand(vtype num_nodes, vtype* seed, vtype num_s
// cout << "iter.: " << numiter << ", after grad[" << i << "]: " << grad[i] << endl;
// }

maxNorm = max(maxNorm, abs(grad[candidates[r]]*dsinv[candidates[r]]));

// timeStamp1 = clock();
if (numiter % 10000 == 0) {
maxNorm = 0;
for (vtype i = 0; i < candidates_size; ++i) {
r = candidates[i];
maxNorm = max(maxNorm, abs(grad[r]*dsinv[r]));
// cout << "iter.: " << numiter << " maxNorm: " << maxNorm << endl;
}
}
// if (numiter % 10000 == 0) {
// maxNorm = 0;
// for (vtype i = 0; i < candidates_size; ++i) {
// r = candidates[i];
// maxNorm = max(maxNorm, abs(grad[r]*dsinv[r]));
// // cout << "iter.: " << numiter << " maxNorm: " << maxNorm << endl;
// }
// }
// timeStamp2 = clock();

// sum_term = sum_term + (float)(timeStamp2 - timeStamp1)/ CLOCKS_PER_SEC;
Expand Down

0 comments on commit 735dabb

Please sign in to comment.