Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reasoning_symbolic_regressor-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reasoning_symbolic_regressor-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file reasoning_symbolic_regressor-0.1.0.tar.gz.

File metadata

File hashes

Hashes for reasoning_symbolic_regressor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1475ca73ad1a4ebbd56a1f7444f4d41ecddecbb66fcc56c40b1a24733b42fe1e
MD5 488a46daab27c7c5a4f39df76ee60dd6
BLAKE2b-256 a80a11f01f56c1d5ac89fd1d6c4ca8a880466e8da24fa20f666999b1e0f40c34

See more details on using hashes here.

File details

Details for the file reasoning_symbolic_regressor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reasoning_symbolic_regressor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 975765a2273e9b41aa7922e7889de43038d67e0fbc7173dc2c9b8d76b867886a
MD5 499c7c58ab9ac2bec81ce6a4ad5db3d3
BLAKE2b-256 54a67af7933cebe9048f7ab6009e53016e20badfb1ef803cfcdb401f742bae5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page