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
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
File details
Details for the file python_expokar-0.1.4.tar.gz.
File metadata
- Download URL: python_expokar-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
718ce26b42eeaf280705414a4326a7f21cd9f22eb171b33c79c8ebed5650da61
|
|
| MD5 |
d2f666cc74ca55063c804e8228bf138c
|
|
| BLAKE2b-256 |
31c77ec4ff5630707102b2b28eb27d5696ee02ae097d953ed5513feefd38175c
|
File details
Details for the file python_expokar-0.1.4-py3-none-any.whl.
File metadata
- Download URL: python_expokar-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776899937ed3715843ec848c6aa66c006cfaa55b1009fac765ede372ec0a9ede
|
|
| MD5 |
fa2d9c0e173dad0b254b80a3ecfe0d09
|
|
| BLAKE2b-256 |
7db37701225c01520552c7403f556d7149113abffff84ae96ec34d3e0733595d
|