wonook commented on a change in pull request #203: [NEMO-360] Implementing an
'XGBoostPolicy'
URL: https://github.com/apache/incubator-nemo/pull/203#discussion_r268946906
##########
File path: common/src/main/java/org/apache/nemo/common/ir/IRDAG.java
##########
@@ -110,8 +109,16 @@ public boolean advanceDAGSnapshot(final BiFunction<IRDAG,
IRDAG, Boolean> checke
return canAdvance;
}
+ /**
+ * @return a IR DAG summary string, consisting of only the vertices
generated from the frontend.
+ */
public String irDAGSummary() {
- return "RV" + getRootVertices().size() + "_V" + getVertices().size() +
"_E" + getVertices().stream()
+ return "rv" + this.getRootVertices().size()
+ + "_v" + this.getVertices().stream()
+ .filter(v -> !v.isUtilityVertex()) // Exclude utility vertices
+ .count()
+ + "_e" + this.getVertices().stream()
Review comment:
Alright. I'll get rid of them. I thought that it improves readability, as it
indicates that they are the vertices of the 'this' object.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services