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 2022/06/22 20:31:42 UTC
[madlib] 03/03: SVM: Disable ORCA to reduce planning time cost
This is an automated email from the ASF dual-hosted git repository.
okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git
commit 49bb11f04ebfb015f8b4f96947e0e8174929c841
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Thu Jun 9 18:46:42 2022 -0400
SVM: Disable ORCA to reduce planning time cost
---
src/ports/postgres/modules/svm/svm.py_in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/ports/postgres/modules/svm/svm.py_in b/src/ports/postgres/modules/svm/svm.py_in
index ceddb392..6106629f 100644
--- a/src/ports/postgres/modules/svm/svm.py_in
+++ b/src/ports/postgres/modules/svm/svm.py_in
@@ -7,6 +7,7 @@ from collections import defaultdict
from kernel_approximation import create_kernel, load_kernel
from utilities.control import MinWarning
+from utilities.control import OptimizerControl
from utilities.in_mem_group_control import GroupIterationController
from utilities.utilities import _assert
from utilities.utilities import _string_to_array
@@ -815,7 +816,8 @@ def svm(schema_madlib, source_table, model_table,
if transformer.transformed_table:
args.update(transformer.transformed_table)
_cross_validate_svm(args)
- _svm_parsed_params(use_transformer_for_output=True, **args)
+ with OptimizerControl(False):
+ _svm_parsed_params(use_transformer_for_output=True, **args)
transformer.clear()
# ------------------------------------------------------------------------------