Machine Learning Practicals Package (my_ml_package / ml-1)
A comprehensive Python package containing clean implementations and datasets for 9 fundamental Machine Learning practical tasks.
⚡ Quick Start: Download Practical & Dataset to Your Downloads Folder
Once installed via pip, you can extract any practical code and its dataset right into your Downloads folder:
# Download Practical 1 (practical_1.py + salary.csv)
ml-1 download 1
# Download ALL 9 practicals and all CSVs
ml-1 download all
The folder will open in Windows Explorer. You can double-click or open
practical_1.pyin VS Code / IDLE, inspect the clean code, and run:python practical_1.py
You can also run directly from Python:
import my_ml_package
my_ml_package.download(1) # Downloads practical 1 + salary.csv
my_ml_package.download('all') # Downloads all practicals + CSVs
Tasks Included
-
Simple Linear Regression (
practical_1.py)- Dataset:
salary.csv - Features:
months-> Target:salary - Evaluation: MAE, MSE, RMSE
- Dataset:
-
Simple Linear Regression (
practical_2.py)- Dataset:
rent.csv - Features:
month-> Target:rent - Evaluation: MAE, MSE, RMSE
- Dataset:
-
Simple Linear Regression (
practical_3.py)- Dataset:
sales.csv - Features:
fahrenheit-> Target:sales - Evaluation: MAE, MSE, RMSE
- Dataset:
-
Multiple Linear Regression (
practical_4.py)- Dataset:
house.csv - Features: Square footage, bedrooms, bathrooms, etc. -> Target:
price - Evaluation: MAE, MSE, RMSE
- Dataset:
-
Multiple Linear Regression (
practical_5.py)- Dataset:
income.csv - Features:
age,experience-> Target:income - Evaluation: MAE, MSE, RMSE
- Dataset:
-
Logistic Regression (
practical_6.py)- Dataset: Scikit-learn Built-in Digits Dataset
- Multi-class classification (0-9 digits)
- Evaluation: Confusion Matrix, Classification Report, 5-Fold Cross Validation
-
Support Vector Machine (SVM) (
practical_7.py)- Dataset: Scikit-learn Built-in Iris Dataset
- Linear SVM classification
- Evaluation: Confusion Matrix, Classification Report, 5-Fold Cross Validation
-
Bagging Ensemble Classifier (
practical_8.py)- Dataset: Scikit-learn Built-in Wine Dataset
- Bagging with Decision Trees (50 estimators)
- Evaluation: Confusion Matrix, Classification Report, 5-Fold Cross Validation
-
Principal Component Analysis (PCA) (
practical_9.py)- Dataset: Scikit-learn Built-in Wine Dataset
- 2D dimensionality reduction and visualization with Matplotlib
Installation
From Local Source (Development Mode):
cd my_ml_package
pip install -e .
From PyPI (once published):
pip install <your-chosen-package-name>
How to Run in Terminal
Option 1: Command Line CLI
# Run Practical 1
ml-1 1
# Run all practicals
ml-1 all
# Download Practical 1 into Downloads
ml-1 download 1
Option 2: Python Code Import
from my_ml_package import practical_1, run_practical, run_all
# Run a single practical
result_1 = practical_1.run()
# Run all practicals
run_all()
Packaging & Publishing to PyPI
1. Set Your Unique PyPI Package Name
Open setup.py and set name='your-unique-name' (e.g. ml-practicals-kadam).
2. Build Distribution Files
python -m build
3. Upload to PyPI
twine upload dist/*
Enter __token__ as the username and your PyPI API token as the password.
License
MIT License
Metadata
Release files for ml1-practicals 0.1.0
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 | |
|---|---|---|---|---|
| ml1_practicals-0.1.0.tar.gz | 34.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ml1_practicals-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.2 kB
Release files / ml1_practicals-0.1.0.tar.gz
| Download URL | ml1_practicals-0.1.0.tar.gz |
|---|---|
| Size | 34.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68e77621480c52d02519ab2c4427bef81b4c37190eb36fb28fe12597a8b36c04
|
|
BLAKE2b-256 checksum How to use checksums |
50f62e2263e5e869d98b8bad2e35c7d0448f53e65c4a289bf51901ddf8d85933
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / ml1_practicals-0.1.0-py3-none-any.whl
| Download URL | ml1_practicals-0.1.0-py3-none-any.whl |
|---|---|
| Size | 39.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc8b958cc917c7daf3a583275ad422471b2b7eaa92e99783b3fd00c5c6b26166
|
|
BLAKE2b-256 checksum How to use checksums |
7495ae10d3952713e9a2f9bb76865f84d61157e5753efb7de74d088bd09d0db5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for ml1-practicals 0.1.0
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.