pyRuleAnalyzer: A python package for enhancing decision rules in tree-based machine learning models

We present pyRuleAnalyzer, a Python package designed to support the refinement of decision rules in machine learning models based on decision trees, such as those implemented with Scikit-learn. The package enables automatic removal of redundant and overly specific rules, as well as manual correction of inaccurate ones. It incorporates evaluation metrics, considering accuracy, recall, precision, and sparsity to assess performance and interpretability before and after refinements. pyRuleAnalyzer supports binary and multiclass classification problems across various domains (e.g., cybersecurity). Once refined, users can deploy the improved model in real-world applications.

Authors

Institutions

Publication Details

Journal
SoftwareX
Published
2025-10-15
DOI
https://doi.org/10.1016/j.softx.2025.102404
Citations
1
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

pyRuleAnalyzer: A python package for enhancing decision rules in tree-based machine learning models

Lenardo Chaves e Silva, Eduardo Augusto Bezerra, Ângelo Perkusich, Lucas Lopes et al.
1 citations
SoftwareX
Explainable Artificial Intelligence (XAI)
2.48
article

pyRuleAnalyzer: A python package for enhancing decision rules in tree-based machine learning models

Lenardo Chaves e Silva, Eduardo Augusto Bezerra, Ângelo Perkusich, Lucas Lopes, Leandro Dias da Silva, Danilo F. S. Santos, Álvaro Sobrinho, Caio Dias Giló
article en
1 citations

Abstract

We present pyRuleAnalyzer, a Python package designed to support the refinement of decision rules in machine learning models based on decision trees, such as those implemented with Scikit-learn. The package enables automatic removal of redundant and overly specific rules, as well as manual correction of inaccurate ones. It incorporates evaluation metrics, considering accuracy, recall, precision, and sparsity to assess performance and interpretability before and after refinements. pyRuleAnalyzer supports binary and multiclass classification problems across various domains (e.g., cybersecurity). Once refined, users can deploy the improved model in real-world applications.

SoftwareXVol. 32
Universidade Federal de Pernambuco (BR), Universidade Federal de Campina Grande (BR), Universidade Federal Rural de Pernambuco (BR), Universidade Federal de Alagoas (BR), Universidade Federal Rural do Semi-Árido (BR)
Openalex Percentile: Top 8%
Explainable Artificial Intelligence (XAI)
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.