You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2024/05/11 01:10:14 UTC
(madlib) branch madlib2-master updated (9e32dd98 -> b1953000)
This is an automated email from the ASF dual-hosted git repository.
okislal pushed a change to branch madlib2-master
in repository https://gitbox.apache.org/repos/asf/madlib.git
from 9e32dd98 PMML: Update user docs
new ea6b535f DL: Use legacy optimizers
new b1953000 Analyze to pick optimal plan for orca
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:
src/ports/postgres/modules/deep_learning/madlib_keras.py_in | 2 +-
src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in | 2 +-
src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in | 4 ++--
.../postgres/modules/deep_learning/test/madlib_keras_predict.sql_in | 1 +
4 files changed, 5 insertions(+), 4 deletions(-)
(madlib) 02/02: Analyze to pick optimal plan for orca
Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
okislal pushed a commit to branch madlib2-master
in repository https://gitbox.apache.org/repos/asf/madlib.git
commit b195300080853098b38609548ef99a10168ad382
Author: Ekta Khanna <ek...@vmware.com>
AuthorDate: Thu May 9 07:39:57 2024 -0700
Analyze to pick optimal plan for orca
---
.../postgres/modules/deep_learning/test/madlib_keras_predict.sql_in | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ports/postgres/modules/deep_learning/test/madlib_keras_predict.sql_in b/src/ports/postgres/modules/deep_learning/test/madlib_keras_predict.sql_in
index 8f2b18e6..ca868dea 100644
--- a/src/ports/postgres/modules/deep_learning/test/madlib_keras_predict.sql_in
+++ b/src/ports/postgres/modules/deep_learning/test/madlib_keras_predict.sql_in
@@ -146,6 +146,7 @@ WHERE y = 0;
INSERT INTO cifar_10_sample(id, x, y, imgpath)
SELECT 5, x, 5, '0/img5.jpg' FROM cifar_10_sample
WHERE y = 1;
+ANALYZE cifar_10_sample;
DROP TABLE IF EXISTS cifar_10_sample_int_batched;
DROP TABLE IF EXISTS cifar_10_sample_int_batched_summary;
(madlib) 01/02: DL: Use legacy optimizers
Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
okislal pushed a commit to branch madlib2-master
in repository https://gitbox.apache.org/repos/asf/madlib.git
commit ea6b535f45d36981552e2dba2b2a0e9b3bf68c6c
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Thu May 2 20:16:08 2024 -0400
DL: Use legacy optimizers
With the tf 2.12 version decay parameter got replaced. Now the user has
to create a LearningRateSchedule object. While this should be possible
to do inside the parameters, we use the legacy optimizers to keep
the existing notations possible as well.
---
src/ports/postgres/modules/deep_learning/madlib_keras.py_in | 2 +-
src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in | 2 +-
src/ports/postgres/modules/deep_learning/madlib_keras_wrapper.py_in | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ports/postgres/modules/deep_learning/madlib_keras.py_in b/src/ports/postgres/modules/deep_learning/madlib_keras.py_in
index 2bd98c4f..0f68165c 100644
--- a/src/ports/postgres/modules/deep_learning/madlib_keras.py_in
+++ b/src/ports/postgres/modules/deep_learning/madlib_keras.py_in
@@ -47,7 +47,7 @@ import utilities.debug as DEBUG
from tensorflow.compat.v1.keras import backend as K
from tensorflow.keras.layers import *
from tensorflow.keras.models import *
-from tensorflow.keras.optimizers import *
+from tensorflow.keras.optimizers.legacy import *
from tensorflow.keras.regularizers import *
DEBUG.timings_enabled = False
diff --git a/src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in b/src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in
index 99bde223..4dcc174b 100644
--- a/src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in
+++ b/src/ports/postgres/modules/deep_learning/madlib_keras_predict.py_in
@@ -37,7 +37,7 @@ from deep_learning.madlib_keras_wrapper import *
from tensorflow.keras.layers import *
from tensorflow.keras.models import *
-from tensorflow.keras.optimizers import *
+from tensorflow.keras.optimizers.legacy import *
import utilities.debug as DEBUG
from utilities.debug import plpy_prepare
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 ecfe4c4d..3d343318 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
@@ -36,10 +36,10 @@ from utilities.utilities import is_superuser
import tensorflow as tf
from tensorflow.compat.v1.keras import backend as K
-from tensorflow.keras.optimizers import *
+from tensorflow.keras.optimizers.legacy import *
from tensorflow.keras.callbacks import TensorBoard
-import tensorflow.keras.optimizers as opt
+import tensorflow.keras.optimizers.legacy as opt
import tensorflow.keras.losses as losses
import tensorflow.keras.metrics as metrics