Skip to content

Commit

Permalink
Remove hard coded spark mode in xgboost examples (#5579)
Browse files Browse the repository at this point in the history
  • Loading branch information
gc-fu authored Aug 30, 2022
1 parent 37a4ded commit c957850
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion python/dllib/examples/nnframes/xgboost/xgboost_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c957850

Please sign in to comment.