From c95785049e75a75b910ab2aabe128ddc137d912b Mon Sep 17 00:00:00 2001 From: Guancheng Fu <110874468+gc-fu@users.noreply.github.com> Date: Tue, 30 Aug 2022 16:01:29 +0800 Subject: [PATCH] Remove hard coded spark mode in xgboost examples (#5579) --- python/dllib/examples/nnframes/xgboost/xgboost_classifier.py | 2 +- python/dllib/examples/nnframes/xgboost/xgboost_example.py | 2 +- python/dllib/examples/nnframes/xgboost/xgboost_regressor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/dllib/examples/nnframes/xgboost/xgboost_classifier.py b/python/dllib/examples/nnframes/xgboost/xgboost_classifier.py index 4f6406b74f1..438f09f7e18 100644 --- a/python/dllib/examples/nnframes/xgboost/xgboost_classifier.py +++ b/python/dllib/examples/nnframes/xgboost/xgboost_classifier.py @@ -37,7 +37,7 @@ def process(filepath, demo): - sparkConf = init_spark_conf().setMaster("local[1]").setAppName("testXGBClassifier") + sparkConf = init_spark_conf().setAppName("testXGBClassifier") sc = init_nncontext(sparkConf) sqlContext = SQLContext(sc) if demo: diff --git a/python/dllib/examples/nnframes/xgboost/xgboost_example.py b/python/dllib/examples/nnframes/xgboost/xgboost_example.py index 78394aee8a9..f97718b38f9 100644 --- a/python/dllib/examples/nnframes/xgboost/xgboost_example.py +++ b/python/dllib/examples/nnframes/xgboost/xgboost_example.py @@ -43,7 +43,7 @@ def Processdata(filepath, demo): :param filepath: :return: assembledf: ''' - sparkConf = init_spark_conf().setMaster("local[1]").setAppName("testNNClassifer") + sparkConf = init_spark_conf().setAppName("testNNClassifer") sc = init_nncontext(sparkConf) sqlContext = SQLContext(sc) if demo: diff --git a/python/dllib/examples/nnframes/xgboost/xgboost_regressor.py b/python/dllib/examples/nnframes/xgboost/xgboost_regressor.py index b157f795e19..b835ee26246 100644 --- a/python/dllib/examples/nnframes/xgboost/xgboost_regressor.py +++ b/python/dllib/examples/nnframes/xgboost/xgboost_regressor.py @@ -42,7 +42,7 @@ def Processdata(filepath, demo): :param filepath: :return: assembledf: ''' - sparkConf = init_spark_conf().setMaster("local[1]").setAppName("testNNClassifer") + sparkConf = init_spark_conf().setAppName("testNNClassifer") sc = init_nncontext(sparkConf) sqlContext = SQLContext(sc) if demo: