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/02/29 19:31:32 UTC
incubator-madlib git commit: SVM: Fix minor bug re: parameter name
Repository: incubator-madlib
Updated Branches:
refs/heads/master 3e576c3ba -> 0341f47bc
SVM: Fix minor bug re: parameter name
Project: http://git-wip-us.apache.org/repos/asf/incubator-madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-madlib/commit/0341f47b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-madlib/tree/0341f47b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-madlib/diff/0341f47b
Branch: refs/heads/master
Commit: 0341f47bc95677b463219e32feeeca59fa5d327f
Parents: 3e576c3
Author: Rahul Iyer <ri...@pivotal.io>
Authored: Mon Feb 29 10:31:26 2016 -0800
Committer: Rahul Iyer <ri...@pivotal.io>
Committed: Mon Feb 29 10:31:26 2016 -0800
----------------------------------------------------------------------
src/ports/postgres/modules/svm/kernel_approximation.py_in | 2 +-
src/ports/postgres/modules/svm/test/svm.sql_in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/0341f47b/src/ports/postgres/modules/svm/kernel_approximation.py_in
----------------------------------------------------------------------
diff --git a/src/ports/postgres/modules/svm/kernel_approximation.py_in b/src/ports/postgres/modules/svm/kernel_approximation.py_in
index 4e19bcb..1d4c982 100644
--- a/src/ports/postgres/modules/svm/kernel_approximation.py_in
+++ b/src/ports/postgres/modules/svm/kernel_approximation.py_in
@@ -177,7 +177,7 @@ class PolyKernel(object):
drop table if exists {rd_weights};
select {schema_madlib}.matrix_random(
1, {dim},
- 'pos_val=1, neg_val=-1, seed={seed}, table_type=temp',
+ 'upper=1, lower=-1, seed={seed}, table_type=temp',
'bernoulli', '{rd_weights}',
'row={id}, val={val}')
""".format(rd_weights=rd_weights_,
http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/0341f47b/src/ports/postgres/modules/svm/test/svm.sql_in
----------------------------------------------------------------------
diff --git a/src/ports/postgres/modules/svm/test/svm.sql_in b/src/ports/postgres/modules/svm/test/svm.sql_in
index 31b996d..9be9328 100644
--- a/src/ports/postgres/modules/svm/test/svm.sql_in
+++ b/src/ports/postgres/modules/svm/test/svm.sql_in
@@ -857,7 +857,6 @@ SELECT
'The dimension of the coefficients must be equal to n_components (3)!')
FROM m1;
-
DROP TABLE IF EXISTS m1, m1_summary, m1_random;
SELECT svm_classification(
'kernel_data',
@@ -869,6 +868,7 @@ SELECT svm_classification(
NULL,
'init_stepsize=1, max_iter=10');
SELECT * FROM m1;
+
DROP TABLE IF EXISTS kernel_predict CASCADE;
SELECT svm_predict('m1','kernel_data', 'index', 'kernel_predict');
SELECT