Skip to main content

A collection of machine learning algorithm implementations with ready-to-use experiments

Project description

Python Expokar

A comprehensive collection of machine learning algorithm implementations including Logistic Regression, Support Vector Machines (SVM), Neural Networks, Principal Component Analysis (PCA), and more.

Installation

pip install python-expokar

Features

  • Linear Regression: Base, Ridge (L2) and Lasso (L1) implementations
  • Logistic Regression: Implementation with various regularization options
  • Support Vector Machines: Implementation with multiple kernel options
  • Neural Networks: McCulloch-Pitts neuron and Hebbian learning implementations
  • Principal Component Analysis (PCA): Dimensionality reduction implementation

Usage Examples

Linear Regression

from python_expokar.ml.linear_regression import Ridge, Lasso

# Ridge Regression
ridge_model = Ridge(alpha=1.0)  # L2 regularization strength
ridge_model.fit(X_train, y_train)
ridge_predictions = ridge_model.predict(X_test)

# Lasso Regression
lasso_model = Lasso(alpha=1.0)  # L1 regularization strength
lasso_model.fit(X_train, y_train)
lasso_predictions = lasso_model.predict(X_test)

Logistic Regression

from python_expokar.ml import CustomLogisticRegression

# Create and train the model
model = CustomLogisticRegression(learning_rate=0.01, n_iterations=1000)
model.fit(X_train, y_train)

# Make predictions
predictions = model.predict(X_test)

Support Vector Machine

from python_expokar.ml import SVM

# Train SVM with different kernels
svm_model = SVM(kernel='rbf', gamma='scale', C=1.0)
svm_model.fit(X_train, y_train)

Neural Networks

from python_expokar.ml import HebbianNeuron

# Create and train a Hebbian neuron
neuron = HebbianNeuron(input_size=2, learning_rate=0.1)
neuron.train_hebbian(X_train, y_train)

Requirements

  • Python >= 3.6
  • NumPy >= 1.19.0
  • scikit-learn >= 0.24.0
  • matplotlib >= 3.3.0
  • pandas >= 1.2.0
  • seaborn >= 0.11.0

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

python_expokar-0.1.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

python_expokar-0.1.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file python_expokar-0.1.3.tar.gz.

File metadata

  • Download URL: python_expokar-0.1.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for python_expokar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6485d6278830004b775132b0427db7df420b0989435d074b34a9cb3a34488efa
MD5 041adf689921da04c9179f3b0478b2e4
BLAKE2b-256 05727498566490eff941421dcd60bd72bd143727d3285786b7aa1cd28ebb7c12

See more details on using hashes here.

File details

Details for the file python_expokar-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: python_expokar-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for python_expokar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3e500daf7fc9338a51a93083f07087ef26dcf45a107415fceda085521f8b477e
MD5 48c5a8bcc5ae6f213e12afe63b4fae12
BLAKE2b-256 20468933f532943e03e4e0d6df11ed4bcf44709719ab35a47d04a3c836090f0d

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