Skip to main content

Learning-first machine learning utilities library for simplified imports, sampling, splitting, and probabilistic preprocessing.

Project description

# QuickLearnKit

QuickLearnKit is a lightweight, learning-first machine learning utilities library designed to simplify model imports and streamline common ML workflows. No more deep module navigation—import models and tools effortlessly and start building.

It focuses on removing *mechanical friction* so students and practitioners can spend more time understanding concepts, not fighting syntax.

---

## Installation

Install QuickLearnKit using pip:

```bash
pip install quicklearnkit

Quick Model Imports

QuickLearnKit provides seamless access to essential machine learning models with minimal syntax. Simply import and initialize models without the usual clutter.

Example Usage

from quicklearnkit import (
    LinearRegressionmodel,
    RandomForestRegressionmodel,
    XGBoostRegressionmodel,
    KNeighborsClassifiermodel,
    GradientBoostingClassifiermodel
)

# Initialize models directly
lr_model = LinearRegressionmodel()
rf_model = RandomForestRegressionmodel()
xgb_model = XGBoostRegressionmodel()

# Initialize classifiers
knn_classifier = KNeighborsClassifiermodel()
gb_classifier = GradientBoostingClassifiermodel()

Supported Models

QuickLearnKit offers easy access to commonly used supervised learning models:

Regression Models

  • Linear Regression (LinearRegressionmodel())
  • K-Nearest Neighbors Regression (KNNRegressionmodel())
  • Decision Tree Regression (DecisionTreeRegressionmodel())
  • Random Forest Regression (RandomForestRegressionmodel())
  • Gradient Boosting Regression (GradientBoostingRegressionmodel())
  • AdaBoost Regression (AdaBoostRegressionmodel())
  • XGBoost Regression (XGBoostRegressionmodel())
  • ElasticNet Regression (ElasticNetRegressionmodel())

Classification Models

  • Logistic Regression (LogisticRegressionmodel())
  • K-Nearest Neighbors Classifier (KNeighborsClassifiermodel())
  • Decision Tree Classifier (DecisionTreeClassifiermodel())
  • Random Forest Classifier (RandomForestClassifiermodel())
  • AdaBoost Classifier (AdaBoostClassifiermodel())
  • Gradient Boosting Classifier (GradientBoostingClassifiermodel())
  • XGBoost Classifier (XGBClassifiermodel())
  • Support Vector Classifier (SVClassifiermodel())

Utilities & Workflow Tools

Beyond models, QuickLearnKit provides practical tools to support the full machine learning workflow.


🔀 Random Sampling — Sampler

Randomly sample from lists, NumPy arrays, or pandas DataFrames. Supports both stateless (reproducible) and stateful (streaming / simulation) modes.

from quicklearnkit import Sampler
import seaborn as sns

df = sns.load_dataset("titanic")

sampler = Sampler(df, n=5, random_state=42)
sampled_data = sampler.sample()

print(sampled_data)

✂️ Train–Test Splitting — train_test_split

Split datasets into training and testing sets with support for:

  • Shuffling
  • Stratification
  • NumPy arrays and pandas DataFrames
from quicklearnkit import train_test_split
import numpy as np

X = np.arange(20).reshape(10, 2)

X_train, X_test = train_test_split(
    X,
    test_size=0.25,
    shuffle=True,
    random_state=42
)

print(X_train.shape, X_test.shape)

🎲 Probabilistic Imputation — ProbabilisticImputer

A group-aware, probabilistic categorical imputer that learns conditional distributions and samples missing values in a reproducible way by default.

This is especially useful for:

  • Teaching how distributions work
  • Simulating realistic missing data handling
  • Data augmentation and robustness testing
from quicklearnkit import ProbabilisticImputer
import seaborn as sns

df = sns.load_dataset("titanic")

imputer = ProbabilisticImputer(
    group_col="pclass",
    target_col="deck",
    random_state=42  # reproducible by default
)

df_imputed = imputer.fit_transform(df)

print("Missing before:", df["deck"].isna().sum())
print("Missing after:", df_imputed["deck"].isna().sum())

Randomized Data Generation

Generate random arrays with specific characteristics:

from quicklearnkit import create_random

random_data = create_random(mean=0, std_dev=1, size=100)
print(random_data)

Contribute

Want to improve QuickLearnKit? Fork the repository, suggest enhancements, and help make machine learning more accessible and easier to teach.


License

This project is licensed under the MIT License.


QuickLearnKit makes machine learning utilities effortless—so you can focus on learning, experimenting, and building, not writing complex import statements. 🚀


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

quicklearnkit-0.2.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

quicklearnkit-0.2.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file quicklearnkit-0.2.1.tar.gz.

File metadata

  • Download URL: quicklearnkit-0.2.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for quicklearnkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2b8159dca5aba40ff60a91b70cb30f7373ad8a2b6a15f7efbc52bf7021bdcc67
MD5 6cc18ad89594a24fa601f6366af55f66
BLAKE2b-256 f7d4e433acd451e19b1592bd29e6c968eef72b33da26e5b9e9f07155dc62efcf

See more details on using hashes here.

File details

Details for the file quicklearnkit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: quicklearnkit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for quicklearnkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66868cca0bfd88d1d3f55dcfcb8068acb5df9c8f2059a2086b18c32c48165e00
MD5 291c107a97a3c2c2d6a54d97939e4e2a
BLAKE2b-256 8174434e1dfd921ba39d51adc9555a8461dd30d08018c35ae3b7533048cdc374

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