Skip to content

Commit

Permalink
Corrección de valores infinitos.
Browse files Browse the repository at this point in the history
  • Loading branch information
fferegrino committed Feb 10, 2018
1 parent 6d93b91 commit f93b968
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wiki/src/main/java/mapreduce/reducing/PageRankReducer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ protected void reduce(Text inKey, Iterable<WikiIntermediatePageRankValue> inValu
continue;
}


if(value.getParentOutlinksNumber() == 0){
continue;
}
vote += value.getPageRank() / value.getParentOutlinksNumber();
}
newPageRank = (1 - d) + (d * vote);
Expand Down

0 comments on commit f93b968

Please sign in to comment.