Skip to content

Commit

Permalink
Use ==/!= to compare constant literals (str, bytes, int, float, tuple) (
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 22, 2022
1 parent 99467f3 commit 5761f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmark/benchmark_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run_benchmark(args):
dtrain.save_binary('dtrain.dm')

param = {'objective': 'binary:logistic','booster':'gblinear'}
if args.params is not '':
if args.params != '':
param.update(ast.literal_eval(args.params))

param['updater'] = args.updater
Expand Down

0 comments on commit 5761f27

Please sign in to comment.