{'fraction_non_alphanumeric': 0.0187125748502994, 'fraction_numerical': 0.0, 'mean_word_length': 4.942222222222222, '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}}
Use of Fitness Sharing in the Local Rule-Based Explanations Method

Recent machine learning algorithms present remarkable results in many problems. However, the decisions made by some of these algorithms are very often difficult for human experts to interpret. Some recent works in the literature try to minimize this disadvantage, proposing algorithms that explain the decisions taken by any black-box model. One of these models is the Local Rule Based Explanations (LORE), that generates local explanations by using a Decision Tree (DT) that locally reproduces the decision boundaries of the black-box model. In LORE, the DT is trained by using an artificial dataset generated by a standard Genetic Algorithm (GA). In this paper, we show that the GA employed in LORE does not necessarily preserve the diversity of solutions in the final population. The diversity of the population is important to generate DTs that can more accurately reproduce the decision boundaries of the black-box model close to the instance to be explained. We then propose the use of fitness sharing in the GA in order to preserve the diversity of the population and generate local decision boundaries of the DT more similar to those of the black-box model. Experimental results show that LORE with fitness sharing generally produces better local explanations.