Learn R Programming

detectXOR (version 0.1.0)

detectXOR-package: 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.

Arguments

Author

Jorn Lotsch <j.lotsch@em.uni-frankfurt.de>

Details

Core Features:

  1. Statistical detection using chi-square tests and Kendall's tau

  2. 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

References

Methodological foundations:

  • Pattern detection in machine learning

  • Statistical dependency measures (Kendall's tau)

See Also

Useful links:

Related packages:

  • DescTools for statistical tests

  • ggh4x for advanced plotting

  • future for parallel processing

Examples

Run this code
# \donttest{
# 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"
)
# }

Run the code above in your browser using DataLab