Symbolic Regression with SPINEX algorithm
Project description
SPINEX Symbolic Regression
A Python implementation of symbolic regression from the SPINEX family.
Installation
pip install spinex-sr
Quick Start
import pandas as pd
from spinex_sr import SPINEX_SymbolicRegression
# Sample data
data = pd.DataFrame({
'x1': [1, 2, 3],
'x2': [4, 5, 6]
})
target = [5, 7, 9]
# Initialize and run
sr = SPINEX_SymbolicRegression(
data=data,
target=target,
actual_function="x1 + x2",
population_size=50,
generations=20
)
best_expression = sr.evolve()
print(f"Best expression found: {best_expression}")
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
spinex_sr-0.1.0.tar.gz
(17.7 kB
view details)
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
spinex_sr-0.1.0-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file spinex_sr-0.1.0.tar.gz.
File metadata
- Download URL: spinex_sr-0.1.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9404123c0bb90e4c3eea6372d500e4c60ffab97062c841111a8f45d014937ed8
|
|
| MD5 |
61e05888fe86b022155ce17da0c7499a
|
|
| BLAKE2b-256 |
548ea63701d36a9abb5bbe68a1c0a395322f3bc09c1541d24912b82f6da2f176
|
File details
Details for the file spinex_sr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spinex_sr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c39ee6b571cba6102c31d35352026b1edda7c259be01fcd25ffffb5c8f9a3b
|
|
| MD5 |
8b5ba25461b9e5238614819250172ac4
|
|
| BLAKE2b-256 |
ed894bf3f138eef6c93078bde8e4a2c0206f7e82f7dd2cfba27f62ea7d58e59a
|