Skip to content

Align RuleList with Python 3.14 and modern dependency/runtime expectations - #7

Draft
HMProenca with Copilot wants to merge 11 commits into
masterfrom
copilot/update-python-version
Draft

Align RuleList with Python 3.14 and modern dependency/runtime expectations#7
HMProenca with Copilot wants to merge 11 commits into
masterfrom
copilot/update-python-version

Conversation

Copilot AI commented Feb 6, 2026

Copy link
Copy Markdown

Python 3.14 support and packaging needed minimal, targeted updates to keep the library usable and buildable.

  • Python target & packaging: Raised classifiers/python_requires to 3.14 and refreshed requirements (numpy/scipy/sklearn/pandas/numba) without adding new libraries beyond numba.
  • Pandas 2.x compatibility: Replaced deprecated iteritems usage and preserved nominal category ordering.
  • Optional acceleration: Added a safe numba import fallback so environments without numba still run.
  • Legacy API: Restored _fit_rulelist helper with documented parameters for backward compatibility.
  • Beam search behavior: Parameterized/documented deterministic shortcut and depth override for legacy expectations.

Example usage of deterministic beam controls:

from rulelist.search.beam.itemset_beamsearch import find_best_rule

rulelist.use_deterministic_shortcut = False  # enable full beam search
rulelist.max_search_depth = rulelist.max_depth
subgroup = find_best_rule(rulelist, data)
Original prompt

Make a plan to update the whole repository with the latest python version without introducing new packages.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 9 commits February 6, 2026 14:35
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Copilot AI changed the title [WIP] Update repository to latest Python version Update RuleList to Python 3.14 and modern dependencies Feb 6, 2026
Copilot AI requested a review from HMProenca February 6, 2026 14:47
…controls

Co-authored-by: HMProenca <11492288+HMProenca@users.noreply.github.com>
Copilot AI changed the title Update RuleList to Python 3.14 and modern dependencies Update RuleList for Python 3.14, modern deps, and deterministic beam controls Feb 6, 2026
Copilot AI changed the title Update RuleList for Python 3.14, modern deps, and deterministic beam controls Align RuleList with Python 3.14 and modern dependency/runtime expectations Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants