Use ==/!= to compare constant literals (str, bytes, int, float, tuple) (#8372)
This commit is contained in:
parent
99467f3999
commit
5761f27e5e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user