LLM-enhanced symbolic regression: A reasoning-driven AI that refines equations using structured feedback and adaptive learning.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reasoning_symbolic_regressor-0.1.0.tar.gz.
File metadata
- Download URL: reasoning_symbolic_regressor-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1475ca73ad1a4ebbd56a1f7444f4d41ecddecbb66fcc56c40b1a24733b42fe1e
|
|
| MD5 |
488a46daab27c7c5a4f39df76ee60dd6
|
|
| BLAKE2b-256 |
a80a11f01f56c1d5ac89fd1d6c4ca8a880466e8da24fa20f666999b1e0f40c34
|
File details
Details for the file reasoning_symbolic_regressor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: reasoning_symbolic_regressor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
975765a2273e9b41aa7922e7889de43038d67e0fbc7173dc2c9b8d76b867886a
|
|
| MD5 |
499c7c58ab9ac2bec81ce6a4ad5db3d3
|
|
| BLAKE2b-256 |
54a67af7933cebe9048f7ab6009e53016e20badfb1ef803cfcdb401f742bae5e
|