Skip to content

Commit

Permalink
Updated lambda with early stopping rounds parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavBehal committed May 27, 2019
1 parent 6b876f4 commit 45df11a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lambda/run_xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def run(event, context):
nfold = input_body['cv']
seed = input_body['seed']
num_boost_round = input_body['num_boost_round']
early_stopping_rounds = input_body['early_stopping_rounds']

logger.info('Reading CSV')
df = pd.read_csv('./preprocessed.csv')
Expand All @@ -40,6 +41,7 @@ def run(event, context):
nfold=nfold,
seed=seed,
num_boost_round=num_boost_round,
early_stopping_rounds=early_stopping_rounds,
metrics='error')

logger.info("Done")
Expand Down

0 comments on commit 45df11a

Please sign in to comment.