reductionista commented on a change in pull request #430: Add generate mst 
table utility.
URL: https://github.com/apache/madlib/pull/430#discussion_r312287879
 
 

 ##########
 File path: src/ports/postgres/modules/deep_learning/madlib_keras.sql_in
 ##########
 @@ -1750,6 +1750,20 @@ CREATE OR REPLACE FUNCTION 
MADLIB_SCHEMA.madlib_keras_fit(
 $$ LANGUAGE sql VOLATILE
 m4_ifdef(`__HAS_FUNCTION_PROPERTIES__', `MODIFIES SQL DATA');
 
+CREATE OR REPLACE FUNCTION MADLIB_SCHEMA.madlib_keras_generate_mst_table(
+    model_selection_table   VARCHAR,
+    model_arch_table        VARCHAR,
+    model_arch_id_list      INTEGER[],
+    compile_params_list     VARCHAR[],
+    fit_params_list         VARCHAR[]
+) RETURNS VOID AS $$
+    PythonFunctionBodyOnly(`deep_learning', 
`madlib_keras_model_hopper_utilities')
+    with AOControl(False):
+        mst_generator = 
madlib_keras_model_hopper_utilities.GenerateMstTable(**globals())
+        mst_generator.generate()
+$$ LANGUAGE plpythonu VOLATILE
+m4_ifdef(`__HAS_FUNCTION_PROPERTIES__', `MODIFIES SQL DATA', `');
+
 
 Review comment:
   We created a story recently for splitting up that sql file.  So I think it 
may be fine to just put it there for now, and split it as a part of that story.

----------------------------------------------------------------
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

Reply via email to