Reasoning Symbolic Regressor
LLM-enhanced symbolic regression: A reasoning-driven AI that refines equations using structured feedback and adaptive learning.
🚀 Overview
ReasoningSymbolicRegressor integrates symbolic regression with LLM-powered reasoning, allowing AI to not only search for equations but also self-correct and refine them through structured feedback.
📦 Installation
You can install this package via PyPI:
pip install reasoning-symbolic-regressor
🔧 Usage
Note: Make sure your OPENAI_API_KEY is set.
from reasoning_symbolic_regressor import ReasoningSymbolicRegressor
# Initialize the AI reasoning-driven symbolic regressor
regressor = ReasoningSymbolicRegressor(debug=True)
# Fit the model to data
regressor.fit(X, y)
✨ Features
✅ LLM-Guided Exploration: Dynamically adjusts search parameters using AI reasoning.
✅ Self-Repairing Feedback: Detects errors in PySR configurations and prompts LLM to correct them.
✅ Iterative Refinement: Improves equations over multiple guided cycles.
✅ Early Stopping: Terminates when the LLM determines the correct equation has been found.
🛠️ Development
To contribute or modify the project, clone the repository and install dependencies:
git clone https://github.com/sidu/ReasoningSymbolicRegressor.git
cd ReasoningSymbolicRegressor
pip install -r requirements.txt
🧪 Testing
To run the tests, use the following command:
pip install -e .
python tests/test_gravitation.py
📜 License
This project is licensed under the MIT License.
🌟 Acknowledgments
Inspired by symbolic regression, LLM reasoning, and adaptive AI systems.
Metadata
Release files for reasoning-symbolic-regressor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reasoning_symbolic_regressor-0.1.0.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reasoning_symbolic_regressor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / reasoning_symbolic_regressor-0.1.0.tar.gz
| Download URL | reasoning_symbolic_regressor-0.1.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1475ca73ad1a4ebbd56a1f7444f4d41ecddecbb66fcc56c40b1a24733b42fe1e
|
|
BLAKE2b-256 checksum How to use checksums |
a80a11f01f56c1d5ac89fd1d6c4ca8a880466e8da24fa20f666999b1e0f40c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / reasoning_symbolic_regressor-0.1.0-py3-none-any.whl
| Download URL | reasoning_symbolic_regressor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
975765a2273e9b41aa7922e7889de43038d67e0fbc7173dc2c9b8d76b867886a
|
|
BLAKE2b-256 checksum How to use checksums |
54a67af7933cebe9048f7ab6009e53016e20badfb1ef803cfcdb401f742bae5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|