You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by nj...@apache.org on 2018/07/12 16:47:48 UTC

madlib git commit: Fix unit test failure in MLP

Repository: madlib
Updated Branches:
  refs/heads/master 17cae057f -> 59ad96a04


Fix unit test failure in MLP


Project: http://git-wip-us.apache.org/repos/asf/madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/madlib/commit/59ad96a0
Tree: http://git-wip-us.apache.org/repos/asf/madlib/tree/59ad96a0
Diff: http://git-wip-us.apache.org/repos/asf/madlib/diff/59ad96a0

Branch: refs/heads/master
Commit: 59ad96a047d54ff7646c5d875abc27ab81a544ed
Parents: 17cae05
Author: Nandish Jayaram <nj...@apache.org>
Authored: Wed Jul 11 14:50:37 2018 -0700
Committer: Nandish Jayaram <nj...@apache.org>
Committed: Thu Jul 12 09:43:43 2018 -0700

----------------------------------------------------------------------
 .../postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/madlib/blob/59ad96a0/src/ports/postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in
----------------------------------------------------------------------
diff --git a/src/ports/postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in b/src/ports/postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in
index 2883855..d3f65a1 100644
--- a/src/ports/postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in
+++ b/src/ports/postgres/modules/convex/test/unit_tests/test_mlp_igd.py_in
@@ -126,10 +126,11 @@ class MLPMiniBatchTestCase(unittest.TestCase):
                                                 'dependent_varname': 'value',
                                                 'class_values': 'regression',
                                                 'grouping_cols': 'value',
+                                                'dependent_vartype': 'value',
                                                 'foo': 'bar'}]
         self.module = self.subject.MLPMinibatchPreProcessor("input")
         self.assertTrue(self.module.preprocessed_summary_dict)
-        self.assertEqual(5, len(self.module.preprocessed_summary_dict))
+        self.assertEqual(6, len(self.module.preprocessed_summary_dict))
 
     def test_check_if_minibatch_enabled_returns_bool(self):
         self.plpy_mock_execute.return_value =  [{'n_x': 1, 'n_y': 2, 'n_z': None}]