Skip to main content

bcsl607_ml — Machine Learning Lab Library

Subject: BCSL607 — Machine Learning
Department: CS&E, National Institute of Engineering, Mysuru

A clean Python package containing all 7 lab programs, each importable and runnable independently.


📁 Folder Structure

bcsl607_ml/
├── __init__.py
└── labs/
    ├── __init__.py
    ├── lab1_knn_basic.py           # Lab 1 - KNN (k=3)
    ├── lab2_knn_multi_k.py         # Lab 2 - KNN (k=1,2,3,4,5,20,30)
    ├── lab3_linear_regression.py   # Lab 3 - Linear Regression
    ├── lab4_polynomial_regression.py # Lab 4 - Polynomial Regression
    ├── lab5_decision_tree.py       # Lab 5 - Decision Tree
    ├── lab6_kmeans_clustering.py   # Lab 6 - K-Means Clustering
    └── lab7_naive_bayes.py         # Lab 7 - Naive Bayes

⚡ Installation

No installation needed. Just place the bcsl607_ml/ folder in your project directory.

Install dependencies:

pip install numpy matplotlib scikit-learn pandas

🚀 Usage

Run a specific lab

from bcsl607_ml.labs import lab1_knn_basic
lab1_knn_basic.run()

Run all labs (except Lab 7)

import bcsl607_ml
bcsl607_ml.run_all()

Lab 7 — Naive Bayes (needs CSV)

from bcsl607_ml.labs import lab7_naive_bayes
lab7_naive_bayes.run("path/to/diabetes_data.csv")

Download dataset from: https://www.kaggle.com/datasets/himanshunakrani/naive-bayes-classificationdata


🧪 Lab Summary

Lab Topic Algorithm Dataset
1 KNN Basic KNeighborsClassifier (k=3) Random 100 points
2 KNN Multi-k KNeighborsClassifier Random 100 points
3 Linear Regression LinearRegression Synthetic
4 Polynomial Regression PolynomialFeatures + LR Synthetic
5 Decision Tree DecisionTreeClassifier Breast Cancer
6 K-Means Clustering KMeans + PCA Breast Cancer
7 Naive Bayes GaussianNB Diabetes CSV

📦 Dependencies

  • numpy
  • matplotlib
  • scikit-learn
  • pandas

Metadata

Release files for bcsl607-ml 1.0.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 bcsl607-ml 1.0.0
File Size Uploaded Provenance
bcsl607_ml-1.0.0.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bcsl607-ml 1.0.0
File Interpreter ABI Platform
bcsl607_ml-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / bcsl607_ml-1.0.0.tar.gz

Download URL bcsl607_ml-1.0.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
357df978e934b31985aa457514eaab23cfa7e46724b8e4c3e968c8e414cf17cf
BLAKE2b-256 checksum
How to use checksums
b3f789c12b38dbc16da710fe02ff4ef1a57c0ab64db3584d9e18d01052457e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / bcsl607_ml-1.0.0-py3-none-any.whl

Download URL bcsl607_ml-1.0.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c42afe11f69b78a6a6a196385a8be8da67d59d890a1791f996be634a6c6250b
BLAKE2b-256 checksum
How to use checksums
96aa137b74b5ef8d79053ae59886d51a62ad77bd3b978804023e45ce45121bbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for bcsl607-ml 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.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