detectXOR-package {detectXOR} | R Documentation |
XOR Pattern Detection and Visualization
Description
Provides tools for detecting XOR-like patterns in variable pairs in two-class data sets. Includes visualizations for pattern exploration and reporting capabilities with both text and HTML output formats.
Details
Core Features:
Statistical detection using chi-square tests and Kendall's tau
Spaghetti plots and xy plot for pattern visualization
Main Functions:
-
detect_xor
: Core detection algorithm -
generate_spaghetti_plot_from_results
: Line plots -
generate_xy_plot_from_results
: Plot for pattern visualization
Author(s)
Jorn Lotsch <j.lotsch@em.uni-frankfurt.de>
References
Methodological foundations:
Pattern detection in machine learning
Statistical dependency measures (Kendall's tau)
See Also
Useful links:
Report bugs at https://github.com/JornLotsch/detectXOR/issues
Related packages:
Examples
# Basic workflow with included dataset
data(XOR_data)
# Detect XOR patterns
results <- detect_xor(XOR_data, class_col = "class")
# Generate visualizations
generate_spaghetti_plot_from_results(
results$results_df,
XOR_data,
class_col = "class"
)
generate_xy_plot_from_results(
results$results_df,
XOR_data,
class_col = "class"
)