Skip to main content

OIKAN: Optimized Interpretable Kolmogorov-Arnold Networks

Project description

OIKAN

Optimized Interpretable Kolmogorov-Arnold Networks (OIKAN)
A deep learning framework for interpretable neural networks using advanced basis functions.

PyPI version PyPI downloads

Key Features

  • EfficientKAN layer implementation
  • Built-in visualization tools
  • Support for both regression and classification tasks
  • Symbolic formula extraction
  • Easy-to-use training interface
  • LaTeX-formatted formula extraction

Installation

git clone https://github.com/silvermete0r/OIKAN.git
cd OIKAN
pip install -e .  # Install in development mode

Quick Start

Regression Example

from oikan.model import OIKAN
from oikan.trainer import train
from oikan.symbolic import extract_symbolic_formula

model = OIKAN(input_dim=2, output_dim=1)
train(model, (X_train, y_train))
formula = extract_symbolic_formula(model, X_test, mode='regression')
print("Extracted formula:", formula)

Classification Example

from oikan.model import OIKAN
from oikan.trainer import train_classification
from oikan.visualize import visualize_classification
from oikan.symbolic import extract_symbolic_formula, plot_symbolic_formula, extract_latex_formula

model = OIKAN(input_dim=2, output_dim=2)
train_classification(model, (X_train, y_train))
visualize_classification(model, X_test, y_test)
formula = extract_symbolic_formula(model, X_test, mode='classification')
print("Extracted formula:", formula)
plot_symbolic_formula(model, X_test, mode='classification')
latex_formula = extract_latex_formula(model, X_test, mode='classification')
print("LaTeX:", latex_formula)

Usage

  • Explore the oikan/ folder for model architectures, training routines, and symbolic extraction.
  • Check the examples/ directory for complete usage examples for both regression and classification.

Contributing

Contributions are welcome! Submit a Pull Request with your improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

oikan-0.0.1.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

oikan-0.0.1.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file oikan-0.0.1.4.tar.gz.

File metadata

  • Download URL: oikan-0.0.1.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for oikan-0.0.1.4.tar.gz
Algorithm Hash digest
SHA256 2bb7d3b1c05e0b66fff653c4fb4dbbfb022d4489ec137c930b687afca82f2c0d
MD5 a08653bfc8cc373cff838e90e98c7c5e
BLAKE2b-256 8dfb910905dd07dee404deb8a861154ae7548cf720dca98de02c75fac60526c5

See more details on using hashes here.

File details

Details for the file oikan-0.0.1.4-py3-none-any.whl.

File metadata

  • Download URL: oikan-0.0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for oikan-0.0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 172dfb180f2239292a4cf5c121c9de5b0f4af1965c254db8a8845eec643a77e3
MD5 ea106abaa1942b39911500606e6c3524
BLAKE2b-256 d52eaf1e06a0fc63ff041070f8827e962bbf19951a397f3985683e9bd5cd7c2a

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