You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ri...@apache.org on 2016/07/13 00:58:39 UTC

incubator-madlib git commit: SVM: Ensure transformed tables are cleared in predict

Repository: incubator-madlib
Updated Branches:
  refs/heads/master 5a3043d72 -> 859c17915


SVM: Ensure transformed tables are cleared in predict


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

Branch: refs/heads/master
Commit: 859c1791593fb75e1ccec1815dc2a43e56f3ebec
Parents: 5a3043d
Author: Rahul Iyer <ri...@apache.org>
Authored: Tue Jul 12 17:58:32 2016 -0700
Committer: Rahul Iyer <ri...@apache.org>
Committed: Tue Jul 12 17:58:32 2016 -0700

----------------------------------------------------------------------
 src/ports/postgres/modules/svm/svm.py_in | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/859c1791/src/ports/postgres/modules/svm/svm.py_in
----------------------------------------------------------------------
diff --git a/src/ports/postgres/modules/svm/svm.py_in b/src/ports/postgres/modules/svm/svm.py_in
index 93431e3..5e1ea33 100644
--- a/src/ports/postgres/modules/svm/svm.py_in
+++ b/src/ports/postgres/modules/svm/svm.py_in
@@ -1351,6 +1351,7 @@ def svm_predict(schema_madlib, model_table, new_data_table, id_col_name,
                 not {schema_madlib}.array_contains_null({independent_varname})
             """.format(**locals())
         plpy.execute(sql)
+        transformer.clear()
 # -----------------------------------------------------------------------------