Skip to main content

cl1codes 🚀

A Python package to quickly access Computer Laboratory - I (BE AI&DS) practical source codes, theoretical background, experiment aim mappings, and automatically extract associated datasets.


📦 Installation

Once published to PyPI, you can install the package on any machine using:

pip install cl1codes

To install locally in editable mode (development):

pip install -e .

⚡ Quickstart

import cl1codes as cl

# 1. Print all experiments, aims, and dataset mappings
cl.print_mapping()
# or
cl.list_experiments()

# 2. Print source code for Practical 1 (automatically extracts Wine.csv)
cl.print_practical(1)

# 3. Print code for sub-experiments (e.g. 3A, 3B, 5A, 5B)
cl.print_practical('3A')
cl.print_practical('3B')

# 4. Print theory for an experiment
cl.print_theory(4)

# 5. Extract a dataset manually into the current working directory
cl.download_dataset(8)

# 6. Extract all 10 bundled datasets at once
cl.download_all_datasets()

📋 Available Practicals & Aim Mappings

Exp # Experiment Title Aim & Focus Datasets
1 PCA Algorithm Dimensionality reduction on wine variables Wine.csv
2 Descriptive Statistics & Regression Univariate, Bivariate, and Multiple Regression on Diabetes diabetes.csv
3A Support Vector Machines (SVM) Classifying 8x8 handwritten digits into classes 0-9 Built-in (sklearn digits)
3B K-Nearest Neighbours (KNN) Social Network Ads purchase prediction & full confusion matrix Social_Network_Ads.csv
4 K-Means Clustering Iris flower partitioning & optimal K selection via Elbow Method iris.csv
5A Random Forest Classifier Predicting car safety and acceptability car_evaluation.csv
5B Ensemble Learning Comparative voting, AdaBoost, GBM, and XGBoost on Iris iris.csv
6 Tic-Tac-Toe Reinforcement Learning Q-Learning agent with Bellman equation & epsilon-greedy policy None (Synthetic/RL Game)
7 Interacting with Web APIs OpenWeatherMap REST API weather retrieval & visualization None (REST API)
8 Data Cleaning and Preparation Telecommunications customer churn cleaning & imputation Telecom_Customer_Churn.csv
9 Data Wrangling on Real Estate Merging with demographics, one-hot encoding, and outlier management RealEstate_Prices.csv, Neighborhood_Demographics.csv
10 Data Visualization with Matplotlib City Air Quality Index (AQI) trends & multi-pollutant plots City_Air_Quality.csv
11 Data Aggregation Sales performance analysis by region & product category Retail_Sales_Data.csv

🌟 Key Features

  • Instant Source Code Access: View clean, ready-to-run source code for every practical.
  • Experiment Aim Mapping: Use cl.print_mapping() anytime in Python or Jupyter Notebooks to instantly know what aim belongs to what experiment.
  • Offline & Bundled Datasets: All 10 practical datasets (~1 MB) are bundled directly inside the package. When running a practical, the required dataset is automatically copied to your current working directory without needing external internet access.
  • Detailed Theory & Formulas: Deep-dive into PCA mathematics, Bellman equation, SVM kernels, and statistical measures using cl.print_theory(n).

📄 License

MIT License.

Metadata

Release files for cl1codes 0.1.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 cl1codes 0.1.0
File Size Uploaded Provenance Actions
cl1codes-0.1.0.tar.gz 219.3 kB Without provenance Details for cl1codes-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cl1codes 0.1.0
File Interpreter ABI Platform Actions
cl1codes-0.1.0-py3-none-any.whl Python 3 none any Details for cl1codes-0.1.0-py3-none-any.whl

Total release size: 449.8 kB

Release files / cl1codes-0.1.0.tar.gz

Download URL cl1codes-0.1.0.tar.gz
Size 219.3 kB
Tags Source
SHA-256 checksum
How to use checksums
030d781f056e895cba0a8651cb901d67b95148d3ae68ea9bec277df6844675cd
BLAKE2b-256 checksum
How to use checksums
9ffb18a96aca81ddc9b675129c113dfa5cbabdba6c24e032470c635fde9a2faa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / cl1codes-0.1.0-py3-none-any.whl

Download URL cl1codes-0.1.0-py3-none-any.whl
Size 230.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8d88eb9226bdc37486bf3c27014ddf6d602d38ca30eec4f2722317d5da616ed
BLAKE2b-256 checksum
How to use checksums
2f7650ae153abb1c3d8a862faafa432d1acc63da9882b48a592477cd1f3bad46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for cl1codes 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.

Release history Release notifications | RSS feed

This release

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