🎯 jackofalltrades
A jack of all trades is a master of none, but oftentimes better than a master of one.
🌟 Overview
jackofalltrades is a comprehensive, beginner-friendly machine learning library designed to make ML accessible to everyone. Whether you're a student learning the fundamentals, a researcher prototyping new ideas, or a developer integrating ML into your applications, jackofalltrades provides the tools you need.
✨ Key Features
- 🚀 One-line dataset loading - Access popular datasets instantly
- 🧠 Complete ML pipeline - From data loading to model evaluation
- 🔧 Easy-to-use APIs - Intuitive interfaces for all skill levels
- 📊 Built-in evaluation - Comprehensive metrics and error analysis
- 🎨 Advanced models - GANs, VAEs, and deep learning models
- 💡 Educational focus - Perfect for learning and teaching ML concepts
🎯 What Can You Do?
- Regression Tasks: Linear, Ridge, Adaptive, and MLP regression models
- Classification: Logistic regression and image classification
- Generative Models: GANs and Variational Autoencoders
- Data Analysis: Load and explore real-world datasets
- Model Evaluation: Comprehensive metrics and performance analysis
🔧 Installation
Prerequisites
- Python 3.7 or higher
- pip package manager
Install from PyPI
pip install jackofalltrades
Install from Source
git clone https://github.com/sanepunk/jackofalltrades.git
cd jackofalltrades
pip install -e .
Development Installation
For developers who want to contribute:
git clone https://github.com/sanepunk/jackofalltrades.git
cd jackofalltrades
pip install -e ".[dev]"
⚡ Quick Start
🏠 Real Estate Price Prediction
from jackofalltrades.datasets import get_real_estate
from jackofalltrades.Models import LinearRegression
from jackofalltrades.Errors import Error
# Load dataset
X, y = get_real_estate()
# Train model
model = LinearRegression()
model.fit(X, y)
# Make predictions
predictions = model.predict(X)
# Evaluate performance
evaluator = Error(y_true=y, y_predicted=predictions)
print(f"R² Score: {evaluator.RSquared():.3f}")
print(f"MSE: {evaluator.MSE():.3f}")
🖼️ Image Classification
from jackofalltrades.Models import ImageClassification
import numpy as np
# Create sample data (28x28 grayscale images)
X = np.random.rand(1000, 28, 28, 1)
y = np.random.randint(0, 10, 1000)
# Initialize and train model
model = ImageClassification(input_shape=(28, 28, 1), num_classes=10)
model.fit(X, y)
# Make predictions
predictions = model.predict(X[:10])
🎲 Generate Images with GANs
from jackofalltrades.Models.GAN import GAN
import torch
# Create GAN
gan = GAN(noise_dim=100, image_channels=1)
# Train (assuming you have a data_loader)
# gan.train(data_loader, epochs=10)
# Generate images
noise = torch.randn(16, 100) # Generate 16 images
generated_images = gan.generator(noise)
📚 Documentation Structure
This package includes comprehensive documentation:
- Models Guide - Detailed guide to all available models
- Datasets Reference - Complete dataset documentation
- Evaluation Metrics - Guide to error analysis and metrics
- Examples - Real-world usage examples
🏗️ Package Architecture
jackofalltrades/
├── datasets.py # Dataset loading utilities
├── Errors.py # Evaluation metrics and error analysis
├── Models/ # Core ML models
│ ├── __init__.py
│ ├── GAN/ # Generative Adversarial Networks
│ └── VAE/ # Variational Autoencoders
└── utils/ # Utility functions
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Workflow
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Inspired by scikit-learn's ease of use
- Built for the machine learning community
- Thanks to all contributors and users
📞 Support
- 📧 Email: patil.ojas.250202@gmail.com
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Made with ❤️ for the machine learning community
Metadata
Release files for jackofalltrades 0.0.3
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 |
|---|---|---|---|---|
| jackofalltrades-0.0.3.tar.gz | 766.0 kB | Without provenance | Details for jackofalltrades-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jackofalltrades-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for jackofalltrades-0.0.3-py3-none-any.whl |
Total release size: 1.6 MB
Release files / jackofalltrades-0.0.3.tar.gz
| Download URL | jackofalltrades-0.0.3.tar.gz |
|---|---|
| Size | 766.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8026f70dc948cebf9274eaacf837869d7ad15cb5924c251c0d84fbc70823e334
|
|
BLAKE2b-256 checksum How to use checksums |
fd9233790bd915ab75ea7e0c07df4ce48eca5c1060e22b5c76596dc0f97ea590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / jackofalltrades-0.0.3-py3-none-any.whl
| Download URL | jackofalltrades-0.0.3-py3-none-any.whl |
|---|---|
| Size | 791.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86ecc0f7f059329b796f551ae9a66045a635552792d4a92009c4c4e10b656062
|
|
BLAKE2b-256 checksum How to use checksums |
62e19197a6f03000be75f6ceea6d768079f2e07bf6c8ff7edfd7c2caf397c3e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for jackofalltrades 0.0.3
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.