Repository navigation
v0.3.0
Added
-
Predator-Prey Optimisation Heuristic: Implemented a new optimisation phase in
Engine.multiply_all_vectorsthat
runs before Jaccard similarity clustering. This "predator-prey" logic uses smallStateVectorinstances (e.g., from
evidence) to significantly reduce the size of larger "prey" vectors, dramatically improving compilation performance on
many rule sets. -
Optimisation Parameter API: Added an
.opt_configproperty to theEngineclass. This allows advanced users to
tune the optimisation heuristics (e.g.max_predator_size,max_cluster_size) by modifying internal attributes like
_opt_max_predator_sizeon an engine instance.
Changed
- Refactored the
Engine.multiply_all_vectorsmethod, splitting the core optimization logic into smaller, internal
static methods (_update_multiplication_state) to improve readability and maintainability.