Repository navigation
Conversation
… 0.8.0) Each restart now receives an equal share of the remaining budget through the per-call time limit of gp-elite 0.8.0, with a 10 percent margin, so the fit ends within max_time. model() returns the formula the engine writes in the raw input variables and checks against predict at fit time, which fixes the exported NaN for powers of negative quantities and the wrong folding of min-max and z-score scaling. requirements.txt now asks for gp-elite>=0.8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EWHDf9m7w3MoDeyD7ewSDZ
…4q7m4p gp-elite: time-bounded restarts and an exact exported model (gp-elite 0.8.0)
Fix/pin python for pyarrow ci
Refactor code for better readability and maintainability.
Adopt Ruff and mypy in pre-commit and CI
…X1, etc. renames generic feature references into the actual feature names used by a dataset, while trying not to accidentally modify models that already use the correct names.
Fix/clean pred model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements focused on code quality enforcement, modernization, and consistency across the codebase and documentation. The key changes include adding a new code quality workflow for CI, enforcing linting and type-checking with pre-commit hooks, updating documentation to reflect these tools and workflows, and modernizing code style for clarity and consistency.
Code Quality and CI Integration:
.github/workflows/code-quality.yml) to run linting, formatting, and type-checking (Ruff and mypy) on all pushes tomaster/devand all pull requests..pre-commit-config.yamlto enforce Ruff linting/formatting and mypy type-checking on all Python files, including notebooks and scripts, with pinned tool versions for reproducibility.Documentation Updates:
CONTRIBUTING.mdwith a new "Code quality" section explaining how to install, configure, and use the linting and type-checking tools, as well as CI expectations and tool versioning.Dependency and Environment Management:
python<3.15) to multipleenvironment.ymlfiles to avoid incompatibility withpyarrowon Python 3.15. [1] [2]gp-elitedependency version inalgorithms/gp-elite/requirements.txtto>=0.8.0.Code Modernization and Cleanup:
algorithms/tir/regressor.pyandexperiment/assess_symbolic_model.pyfor improved code style, clarity, and consistency (e.g., dictionary formatting, string quoting, argument parsing). [1] [2]experiment/conftest.pyfor formatting consistency.