Skip to main content

Machine Learning Practicals (ml1-practicals)

A complete collection of 9 Machine Learning practicals with built-in graph visualizations and instant one-word download commands (ml-1 to ml-9).


⚡ Instant One-Word Commands

Once installed, just type the practical number you want:

Command Action Output Files in Downloads
ml-1 Downloads Practical 1 (Simple Linear Regression) practical_1.py + salary.csv
ml-2 Downloads Practical 2 (Simple Linear Regression) practical_2.py + rent.csv
ml-3 Downloads Practical 3 (Simple Linear Regression) practical_3.py + sales.csv
ml-4 Downloads Practical 4 (Multiple Linear Regression) practical_4.py + house.csv
ml-5 Downloads Practical 5 (Multiple Linear Regression) practical_5.py + income.csv
ml-6 Downloads Practical 6 (Logistic Regression on Digits) practical_6.py
ml-7 Downloads Practical 7 (Support Vector Machine on Iris) practical_7.py
ml-8 Downloads Practical 8 (Bagging Ensemble on Wine) practical_8.py
ml-9 Downloads Practical 9 (PCA 2D on Wine) practical_9.py

Running any command like ml-1 or ml-2 immediately puts the clean .py file and dataset into your Downloads folder and pops open Windows Explorer so you can view, edit, and run the code!

Download All Practicals at Once:

ml-1 all
# OR
ml1-practicals all

📊 Graphs Included in Every Practical

Every practical script includes visualization:

  1. Practical 1 (salary.csv): Actual vs Predicted scatter points + Continuous red regression line.
  2. Practical 2 (rent.csv): Actual vs Predicted scatter points + Continuous red regression line.
  3. Practical 3 (sales.csv): Actual vs Predicted scatter points + Continuous red regression line.
  4. Practical 4 (house.csv): Actual vs Predicted Price scatter plot with ideal $y=x$ reference diagonal.
  5. Practical 5 (income.csv): Actual vs Predicted Income scatter plot with ideal $y=x$ reference diagonal.
  6. Practical 6 (Digits): 10×10 Colored Confusion Matrix heatmap (ConfusionMatrixDisplay).
  7. Practical 7 (Iris): 3×3 Colored Confusion Matrix heatmap with Iris class labels.
  8. Practical 8 (Wine): 3×3 Colored Confusion Matrix heatmap with Wine class labels.
  9. Practical 9 (PCA): 2D Principal Component scatter plot colored by wine class with a legend.

🚀 How to Run on Any Computer

  1. Open Terminal or Command Prompt:
    pip install ml1-practicals
    
  2. Download any practical:
    ml-1
    # (Or ml-2, ml-3, ml-4, etc.)
    
  3. Open the folder and run:
    python practical_1.py
    
    The script prints all metrics and opens the interactive graph window!

License

MIT License

Metadata

Release files for ml1-practicals 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ml1-practicals 0.2.0
File Size Uploaded Provenance
ml1_practicals-0.2.0.tar.gz 35.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ml1-practicals 0.2.0
File Interpreter ABI Platform
ml1_practicals-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 78.9 kB

Release files / ml1_practicals-0.2.0.tar.gz

Download URL ml1_practicals-0.2.0.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
143293d5cb25b20c28edd5080aaaf9636c34850875e51ff913c05c265fa399da
BLAKE2b-256 checksum
How to use checksums
77d52be9e37291ddea3e439c8b84e15df6595df7fbd944967fa39ce0b52694e5
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.2.0-py3-none-any.whl

Download URL ml1_practicals-0.2.0-py3-none-any.whl
Size 43.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba9d042b0ce78769aed410133d7d4cb1a76a0360f2f620db557121b7e1b5267a
BLAKE2b-256 checksum
How to use checksums
8f98211731bfd3432cd779f7e40fac93338349b57154d53289366ed8e2f91c30
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.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page