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 |
| 6A | Reinforcement Learning - Maze | Q-Learning agent exploring a grid maze environment | None (Synthetic/Grid World) |
| 6B | Reinforcement Learning - Tic-Tac-Toe | 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.2.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 | Actions |
|---|---|---|---|---|
| cl1codes-0.2.0.tar.gz | 221.3 kB | Without provenance | Details for cl1codes-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cl1codes-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for cl1codes-0.2.0-py3-none-any.whl |
Total release size: 453.7 kB
Release files / cl1codes-0.2.0.tar.gz
| Download URL | cl1codes-0.2.0.tar.gz |
|---|---|
| Size | 221.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
665b3118ceb44e6d5a8b96cf861e8b7cddf4546feb90c62c90f99580837f0e90
|
|
BLAKE2b-256 checksum How to use checksums |
605633df12358f592b253340df049f0d4e04e373c4a130b6507b081a40be7451
|
| 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.2.0-py3-none-any.whl
| Download URL | cl1codes-0.2.0-py3-none-any.whl |
|---|---|
| Size | 232.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37c71b7856801bd323a39fedf546b9afbbdf5dc5d1578a0b657933ad79d47401
|
|
BLAKE2b-256 checksum How to use checksums |
b15f2e835aa63e8da2272ed450d6cffcb10b673ad1de478f7940ec9ba6a195f4
|
| 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.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.