Lab Experiments: ML experiment management for college labs and restricted servers
Project description
labexp: Lab Experiments
Fast, lightweight ML experiment management for college labs and restricted servers.
Perfect for educational institutions, lab environments, and networks with restricted internet access.
✨ Features
- 🧪 11 Pre-built ML Experiments - Ready-to-run templates (Linear Regression, SVM, Neural Networks, K-Means, etc.)
- 📊 Experiment Tracking - Store and compare ML experiments
- 🔧 Lightweight - Minimal dependencies, works offline
- 🏫 Lab-Ready - Works on restricted servers and college networks
- 📦 Zero-Config Installation - Single command setup
- 🎓 Educational - Perfect for ML courses and workshops
🚀 Quick Start
Installation
Standard (with internet):
pip install labexp
Offline/Restricted Server (no internet):
# 1. Download wheel on any machine
pip download labexp --no-deps --python-version 38 --only-binary=:all:
# 2. Transfer .whl file to lab machine
# 3. Install offline
pip install labexp-1.0.0-py3-none-any.whl
From Source (most flexible):
git clone https://github.com/yourusername/labexp.git
cd labexp
pip install -e .
Usage
import labexp as exp
# Show experiment code
exp.exp(1) # Linear Regression
exp.exp(5) # SVM
exp.exp(8) # Neural Network
# List all 11 experiments
exp.list_experiments()
# Get experiment code as string
code = exp.get_experiment_code(3)
# Get experiment info
info = exp.get_experiment_info(2)
📚 Available Experiments
- Linear Regression - Basic regression with scikit-learn
- Logistic Regression - Binary classification
- Decision Trees - Tree-based classification
- Random Forest - Ensemble learning
- Support Vector Machine - SVM classification
- K-Means Clustering - Unsupervised learning
- Gradient Boosting - XGBoost implementation
- Neural Networks - Multi-layer perceptron
- Naive Bayes - Probabilistic classifier
- PCA - Dimensionality reduction
- Cross-Validation - Model evaluation
💾 Offline Features
1. No Internet Required After Installation
- All 11 experiments are bundled
- All dependencies downloaded at install time
- Run experiments completely offline
2. Portable Installation
- Works on USB drives
- Can copy installed package to other machines
- Minimal size (~50 MB total)
3. Network Restrictions
- Works behind proxies
- Works on corporate/university firewalls
- No external API calls required
- Pure Python, no binary compilation needed
4. College Lab Support
- Works on Linux, Windows, macOS
- Compatible with standard Python 3.8+
- No admin privileges required
- Shared lab environment friendly
🔧 Installation Guide for Restricted Servers
For Lab Administrators
-
Download the package on any machine with internet:
pip download labexp --no-deps pip download pandas
-
Create offline environment:
mkdir /opt/labexp-repo cp *.whl /opt/labexp-repo/
-
Install for all users:
pip install --no-index --find-links=/opt/labexp-repo labexp
-
Test installation:
python -c "import labexp; labexp.exp(1)"
For Individual Users
-
Download offline installer:
- Visit: https://pypi.org/project/labexp/
- Download the
.whlfile
-
Transfer to lab machine (via USB/external drive)
-
Install:
pip install labexp-1.0.0-py3-none-any.whl
-
Verify:
python >>> import labexp >>> labexp.exp(1)
📖 API Reference
exp(i)
Display the code for experiment i (1-11)
labexp.exp(5) # Shows SVM experiment code
list_experiments()
List all available experiments
labexp.list_experiments()
get_experiment_code(i)
Get experiment code as a string
code = labexp.get_experiment_code(3)
get_experiment_info(i)
Get complete experiment information
info = labexp.get_experiment_info(2)
🎓 Educational Use Cases
- ML Courses - Use as teaching resource for 11 core algorithms
- Workshops - Run experiments without internet dependency
- Lab Sessions - Pre-load on lab machines for students
- Offline Learning - Perfect for limited-connectivity environments
⚙️ System Requirements
- Python: 3.8 or higher
- OS: Linux, macOS, Windows
- Dependencies: pandas (minimal overhead)
- Optional: scikit-learn, numpy for full ML features
- Storage: ~50 MB
🛠️ Development
Install development version:
pip install -e ".[dev]"
Run tests:
pytest tests/
Build distribution:
python -m build
📋 Comparison
| Feature | labexp | Standard ML Libraries |
|---|---|---|
| Offline Installation | ✅ | ❌ |
| Pre-built Experiments | ✅ | ❌ |
| Zero Config | ✅ | ❌ |
| Lab-ready | ✅ | ⚠️ |
| Minimal Dependencies | ✅ | ❌ |
📝 License
MIT License - See LICENSE file for details
🤝 Contributing
Contributions welcome! Please submit pull requests or issues on GitHub.
📞 Support
- Documentation: See
/docsfolder - Issues: GitHub Issues
- Email: lab@example.com
Made for education. Works everywhere.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labexp-1.0.0.tar.gz.
File metadata
- Download URL: labexp-1.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
526c47a8bb34137853d1f315956866c4156a673dedb067d3eb43fcaf1c3f95ef
|
|
| MD5 |
62fbe260fe007410819dd159cc0c254d
|
|
| BLAKE2b-256 |
98a3f214632d558f2f3fc18a79f3ae242c92b2f67b999107b2438ed5586ce2d2
|
File details
Details for the file labexp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: labexp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4019033b9cc24dfebdd84964ab86369411cf2cabfacd53332ad6b5705c27f887
|
|
| MD5 |
a9bf10eb2442eacd3405ebd231e4a699
|
|
| BLAKE2b-256 |
b9b4d808f358736bcdedc53e59b8f106eb0d512a8d94ff75514d79f33259bacb
|