{'fraction_non_alphanumeric': 0.014874141876430207, 'fraction_numerical': 0.0, 'mean_word_length': 5.076388888888889, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Prediction with random forest involving sampling and feature selection strategies

In the real-world applications, data sets are often imbalanced, where samples from the majority class are significantly more than the minority class. Learning from such a data set likely results in a biased classifier that has a higher predictive accuracy only over the majority class. In this paper, a new sampling strategy based on SMOTE is proposed to balance the dataset, then a feature selection method based on Relief is presented and used to find key features of the given imbalanced learning problem. After that, random forest algorithm is used as a classifier. The method is evaluated using six benchmark data sets and two practical application datasets. Compared with SMOTE and original Relief algorithm, the proposed method is more applicable and effective on the imbalanced data.