AutoInland Vehicle Insurance Claim Challenge
$1,000 USD
Can you predict if a client will submit a vehicle insurance claim in the next 3 months?
583 data scientists enrolled, 234 on the leaderboard
InsuranceFinancial ServicesPredictionStructured
26 March—27 June
Ends in 2 months
Help
published 30 Mar 2021, 13:27

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)`