Repository: incubator-hivemall
Updated Branches:
  refs/heads/master ca6baea91 -> d95543e05


Fixed GeneralRegressorUDTFTest to cope with behavioral change where dloss is 
zero


Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/d95543e0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/d95543e0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/d95543e0

Branch: refs/heads/master
Commit: d95543e05f793e7245c2e2d3400ea06e9cbe6cf6
Parents: ca6baea
Author: Makoto Yui <[email protected]>
Authored: Wed Nov 7 15:41:24 2018 +0900
Committer: Makoto Yui <[email protected]>
Committed: Wed Nov 7 15:41:24 2018 +0900

----------------------------------------------------------------------
 .../test/java/hivemall/regression/GeneralRegressorUDTFTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/d95543e0/core/src/test/java/hivemall/regression/GeneralRegressorUDTFTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/hivemall/regression/GeneralRegressorUDTFTest.java 
b/core/src/test/java/hivemall/regression/GeneralRegressorUDTFTest.java
index a2a8696..be72024 100644
--- a/core/src/test/java/hivemall/regression/GeneralRegressorUDTFTest.java
+++ b/core/src/test/java/hivemall/regression/GeneralRegressorUDTFTest.java
@@ -136,7 +136,7 @@ public class GeneralRegressorUDTFTest {
 
     private <T> void testFeature(@Nonnull List<T> x, @Nonnull ObjectInspector 
featureOI,
             @Nonnull Class<T> featureClass, @Nonnull Class<?> 
modelFeatureClass) throws Exception {
-        float y = 0.f;
+        float y = 1.f;
 
         GeneralRegressorUDTF udtf = new GeneralRegressorUDTF();
         ObjectInspector valueOI = 
PrimitiveObjectInspectorFactory.javaFloatObjectInspector;

Reply via email to