SMKML - Hybrid Machine Learning Algorithm
🚀 SMK: Supervised + Unsupervised Machine Learning Toolkit SMK (smkml) is a unified Python library for seamlessly performing classification and clustering, with built-in support for SVM, KMeans, custom distance metrics, visualization, and limitations analysis. Ideal for learners, researchers, and rapid prototyping.
Features
-> ✅ SVM Classification with optional Grid Search (hyperparameter tuning)
-> 🔄 KMeans Clustering with PCA visualization
-> 📐 Built-in Distance Metrics:
=> Euclidean
=> Manhattan
=> Minkowski (configurable p)
-> 📊 Visualization of clusters (2D PCA)
-> ⚠️ Insights: Understand limitations of SVM and k-NN
-> 💡 Unified API: Same interface for supervised & unsupervised learning
Installation
pip install smkml
"Quick Start"
from smkml import SMK
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
# Create synthetic classification data
X, y = make_classification(n_samples=300, n_features=10, n_informative=8, random_state=42)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
# Initialize SMK with Grid Search enabled
model = SMK(enable_grid_search=True)
# Train model
model.fit(X_train, y_train)
# Evaluate
acc = model.score(X_test, y_test)
print("✅ Accuracy:", acc)
# Predict
preds = model.predict(X_test)
Metadata
Release files for smkml 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smkml-0.0.9.tar.gz | 3.9 kB | Without provenance | Details for smkml-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smkml-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for smkml-0.0.9-py3-none-any.whl |
Total release size: 8.1 kB
Release files / smkml-0.0.9.tar.gz
| Download URL | smkml-0.0.9.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
523b327f01538cd6dd7b15b988082fcc8ec9e07c227a103c3a497e7bcf55e05c
|
|
BLAKE2b-256 checksum How to use checksums |
2ac6ae037736bd42bf1c7ed58373d8a4fdb724218950125d7511bd15d50a0d54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / smkml-0.0.9-py3-none-any.whl
| Download URL | smkml-0.0.9-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f23054b3db37b64d062171c4f4d21743b5bceb96c5e6885ad9e7bf6e9240cc6
|
|
BLAKE2b-256 checksum How to use checksums |
8b2d54e111981a2ebdd8eb8bf34046d9705bccd42f52b4370367369cdd8da6f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for smkml 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.