Skip to main content

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


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)

Uploaded Source

Built Distribution

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

spinex_sr-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

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

Hashes for spinex_sr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9404123c0bb90e4c3eea6372d500e4c60ffab97062c841111a8f45d014937ed8
MD5 61e05888fe86b022155ce17da0c7499a
BLAKE2b-256 548ea63701d36a9abb5bbe68a1c0a395322f3bc09c1541d24912b82f6da2f176

See more details on using hashes here.

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

Hashes for spinex_sr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0c39ee6b571cba6102c31d35352026b1edda7c259be01fcd25ffffb5c8f9a3b
MD5 8b5ba25461b9e5238614819250172ac4
BLAKE2b-256 ed894bf3f138eef6c93078bde8e4a2c0206f7e82f7dd2cfba27f62ea7d58e59a

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