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 per month PyPI Total Downloads License GitHub issues Docs

Key Features

  • 🚀 Efficient Implementation ~ Optimized KAN architecture with SVD projection
  • 📊 Advanced Basis Functions ~ B-spline and Fourier basis transformations
  • 🎯 Multi-Task Support ~ Both regression and classification capabilities
  • 🔍 Interpretability Tools ~ Extract and visualize symbolic formulas
  • 📈 Interactive Visualizations ~ Built-in plotting and analysis tools
  • 🧮 Symbolic Mathematics ~ LaTeX formula extraction and symbolic approximations

Installation

Method 1: Via PyPI (Recommended)

pip install oikan

Method 2: Local Development

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.visualize import visualize_regression
from oikan.symbolic import extract_symbolic_formula, plot_symbolic_formula, extract_latex_formula

model = OIKAN(input_dim=2, output_dim=1)
train(model, (X_train, y_train))

visualize_regression(model, X, y)

formula = extract_symbolic_formula(model, X_test, mode='regression')
print("Extracted formula:", formula)

plot_symbolic_formula(model, X_test, mode='regression')

latex_formula = extract_latex_formula(model, X_test, mode='regression')
print("LaTeX:", latex_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.10.tar.gz (10.2 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.10-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oikan-0.0.1.10.tar.gz
  • Upload date:
  • Size: 10.2 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.10.tar.gz
Algorithm Hash digest
SHA256 8d7068546ba9b651f1f9608314f60070caf8de5942d5120278432ed4c74a8c77
MD5 84b447bde332594f88e5eafc0aadf17a
BLAKE2b-256 766739c042a91ec238d60d5228168b6e7e22f8a2f270b61bea6b0f571640c5fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oikan-0.0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bf03284b10765d424857d36d826996420308bfecdb22db2b301a70c8edd523f0
MD5 58f9b52a1adeacc19c0a8ed258a34419
BLAKE2b-256 63281f40fb512fec5672668ef30275ad80ccc24687664d32d684471a6a45ab53

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