kaknikhil commented on a change in pull request #397: DL: Update content of
the model summary table
URL: https://github.com/apache/madlib/pull/397#discussion_r288224712
##########
File path: src/ports/postgres/modules/deep_learning/madlib_keras.py_in
##########
@@ -319,6 +308,38 @@ def fit(schema_madlib, source_table,
model,model_arch_table,
#TODO add a unit test for this in a future PR
reset_cuda_env(original_cuda_env)
+def get_source_summary_table_dict(fit_validator):
+ source_summary = plpy.execute("""
+ SELECT
+ {class_values} AS class_values,
+ {norm_const} AS norm_const,
+ {dep_vartype} AS dep_vartype,
+ {dep_varname} AS dependent_varname_in_source_table,
+ {indep_varname} AS independent_varname_in_source_table
+ FROM {tbl}
+ """.format(class_values=CLASS_VALUES_COLNAME,
+ norm_const=NORMALIZING_CONST_COLNAME,
+ dep_vartype=DEPENDENT_VARTYPE_COLNAME,
+ dep_varname='dependent_varname',
Review comment:
don't we have variables for indep and dep varname constants ?
----------------------------------------------------------------
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