How to handle errors in predict function of R?
问题 I have a dataframe df, I am building an machine learning model (C5.0 decision tree) to predict the class of a column (loan_approved): Structure (not real data): id occupation income loan_approved 1 business 4214214 yes 2 business 32134 yes 3 business 43255 no 4 sailor 5642 yes 5 teacher 53335 no 6 teacher 6342 no Process: I randomly split the data frame into test and train, learned on train dataset (rows 1,2,3,5,6 train and row 4 as test) In order to account for new categorical levels in one