Salut Quelqu'un a pu resoudre ce probleme ? LightGBMError: Do not support special JSON characters in feature name.
import re data = data.rename(columns = lambda x:re.sub('[^A-Za-z0-9_]+', '', x))
You have to rename the columns because they contain special characters, you can easily do this using regular expressions, the pattern above is only going to allow for alphabets, numbers and underscore characters as column name, and will subsitute any other character with an empty space.
this doesn't work, use this instead ,
import re all_data = all_data.rename(columns = lambda x:re.sub('[*=/,&^#@]+', '', x))
You can always do as XXXX said it works great. another solution would also be to just put `.values` i.e.
`lgb.fit (X_train.values, y_train)`