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:

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.2.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.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quicklearnkit-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6dfb185db3150b9c45d2462228eaa30bfae0dd777f6b2b24209932256f5c3307
MD5 4621a2442eb347423af6032250708c7b
BLAKE2b-256 a9f00e6a9f19f260d676a76f381a483f79eba7a274dbe0d0ec4a5fea09e98555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quicklearnkit-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc2b7ffb36fab6702023db75376ef9950f6a6363a1ef7fb64b867c7b319c4c62
MD5 e1945110c8f753b6c598fe84b426427d
BLAKE2b-256 c845ce42e8c59ef86b5992df66068adc27915ee340f140de400b29ff62f942f7

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