wonook commented on a change in pull request #203: [NEMO-360] Implementing an
'XGBoostPolicy'
URL: https://github.com/apache/incubator-nemo/pull/203#discussion_r267299448
##########
File path:
examples/beam/src/test/java/org/apache/nemo/examples/beam/WordCountITCase.java
##########
@@ -127,4 +128,14 @@ public void testSpeculativeExecution() throws Exception {
.addOptimizationPolicy(AggressiveSpeculativeCloningPolicyParallelismFive.class.getCanonicalName())
.build());
}
+
+ @Test (timeout = ExampleTestArgs.TIMEOUT)
+ public void testXGBoost() throws Exception {
+ JobLauncher.main(builder
+ .addResourceJson(executorResourceFileName)
+ .addJobId(WordCountITCase.class.getSimpleName() + "_xgboost")
+ .addMaxTaskAttempt(Integer.MAX_VALUE)
+ .addOptimizationPolicy(XGBoostPolicy.class.getCanonicalName())
+ .build());
+ }
Review comment:
This test confirms that the XGBoostPolicy works without errors, producing
the right outputs with the test inputs, just like the other test cases of the
class.
----------------------------------------------------------------
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