Skip to main content

A unified machine learning toolkit for classification, clustering, distance metrics, and model analysis—optimized for both supervised and unsupervised tasks.

Project description

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)

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

smkml-0.0.9.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

smkml-0.0.9-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file smkml-0.0.9.tar.gz.

File metadata

  • Download URL: smkml-0.0.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for smkml-0.0.9.tar.gz
Algorithm Hash digest
SHA256 523b327f01538cd6dd7b15b988082fcc8ec9e07c227a103c3a497e7bcf55e05c
MD5 673c241f020860ff20cd22e852fa3b4f
BLAKE2b-256 2ac6ae037736bd42bf1c7ed58373d8a4fdb724218950125d7511bd15d50a0d54

See more details on using hashes here.

File details

Details for the file smkml-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: smkml-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for smkml-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8f23054b3db37b64d062171c4f4d21743b5bceb96c5e6885ad9e7bf6e9240cc6
MD5 2dfff4ae3b42a067304f770e718c91f4
BLAKE2b-256 8b2d54e111981a2ebdd8eb8bf34046d9705bccd42f52b4370367369cdd8da6f1

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