- Newest
- Most votes
- Most comments
According to the documentation : Categorical features input format: If your predictors include categorical features, you can provide a JSON file named categorical_index.json in the same location as your data directories. This file should contain a Python dictionary where the key is the string "cat_index_list" and the value is a list of unique integers. Each integer in the value list should indicate the column index of the corresponding categorical features in your training data CSV file. Each value should be a positive integer (greater than zero because zero represents the target value), less than the Int32.MaxValue (2147483647), and less than the total number of columns. There should only be one categorical index JSON file. {"cat_index_list":[ 1,2,3]} 1,2,3 being the indices of the categorial columns.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
Thanks @Lorea_AWS for your guidence, I make the JSON file accordingly however another issue come up : I posted it in https://repost.aws/questions/QUVfbc_AsXRzaxAl69MMFlsQ/error-for-training-job-catboost-classification-model-error-message-type-error-cannot-convert-xxx-to-float I'm trying to find a solution and I have searched a lot but with no success. Please share your thoughts on this as well! Thanks