yphacker / kesci

kesci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: invalid character in identifier

zhangxiann opened this issue · comments

运行到

clf = lgb.cv(params,
metrics=['auc'],
lgb_train,
num_boost_round=10000,
nfold=5,
early_stopping_rounds=100,
verbose_eval=True)

报如下错误:

File "<ipython-input-300-99041a8453d9>", line 23
early_stopping_rounds=100,
SyntaxError: invalid character in identifier

找到原因了:early_stopping_rounds=100后面的逗号是中文逗号,应该改为英文逗号。

改为英文逗号后,又报了另一个错误:

SyntaxError: positional argument follows keyword argument

bug已修复,多谢指出

bug已修复,多谢指出