You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by kh...@apache.org on 2021/05/05 18:44:04 UTC

[madlib] branch master updated (c2bedea -> 77f3fd7)

This is an automated email from the ASF dual-hosted git repository.

khannaekta pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git.


    from c2bedea  Jenkins: Add new dockerfile for PG11
     new 1ba0ab9  DL: Fix metrics error message
     new 77f3fd7  DL: Fix object table schema error message

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../modules/deep_learning/madlib_keras_validator.py_in         | 10 +++++++++-
 .../postgres/modules/deep_learning/madlib_keras_wrapper.py_in  |  4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

[madlib] 02/02: DL: Fix object table schema error message

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khannaekta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 77f3fd7ef6fdc0eb54656d73ae0d2c06244062ad
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Fri Apr 30 18:30:00 2021 +0300

    DL: Fix object table schema error message
---
 .../modules/deep_learning/madlib_keras_validator.py_in         | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/ports/postgres/modules/deep_learning/madlib_keras_validator.py_in b/src/ports/postgres/modules/deep_learning/madlib_keras_validator.py_in
index de5c63d..b809477 100644
--- a/src/ports/postgres/modules/deep_learning/madlib_keras_validator.py_in
+++ b/src/ports/postgres/modules/deep_learning/madlib_keras_validator.py_in
@@ -327,7 +327,15 @@ class FitCommonValidator(object):
             input_tbl_valid(self.validation_summary_table, self.module_name)
 
         if self.object_table is not None:
-            input_tbl_valid(self.object_table, self.module_name)
+            try:
+                input_tbl_valid(self.object_table, self.module_name)
+            except Exception as e:
+                if "Incorrect table name" in e:
+                    plpy.error("""Incorrect table name ({0}) provided! """\
+                        """Do not include schema name for the object table.
+                        """.format(self.object_table))
+                else:
+                    raise e
 
             _assert(is_superuser(get_table_owner(self.object_table)),
                 "DL: Cannot use a table of a non-superuser as object table.")

[madlib] 01/02: DL: Fix metrics error message

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khannaekta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 1ba0ab9ce444d0289b168c209f3060483fa6e72e
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Fri Apr 30 14:54:01 2021 +0300

    DL: Fix metrics error message
---
 src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in b/src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in
index e3f9f01..980bf69 100644
--- a/src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in
+++ b/src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in
@@ -196,8 +196,8 @@ def get_metrics_from_compile_param(str_of_args):
         try:
             metrics = ast.literal_eval(compile_dict[ckey])
         except ValueError:
-            plpy.error(("Invalid input value for parameter {0}, "
-                        "please refer to the documentation").format(ckey))
+            plpy.error(("Invalid input value for parameter 'metric', "
+                        "please refer to the documentation"))
     return metrics
 
 def get_loss_from_compile_param(str_of_args):