Skip to main content

AI Practical Kit

A Python package that prints code snippets for the eight Artificial Intelligence practicals in the supplied BSc IT practical syllabus.

Install locally

python -m pip install .

Usage

from ai_practicals import p1, p2, p5, list_practicals, list_questions, search_practicals

p1()
p1(2)
p5(3)
list_practicals()
list_questions(5)
search_practicals("Bayes")

Each pN(question=1) prints the code for that question and also returns the code as a string. Use p1(2) for Practical 1, Question 2.

Available practicals

  • Practical 1: Table-driven agent and 8-puzzle BFS
  • Practical 2: Water jug DFS and UCS
  • Practical 3: Greedy Best-First 8-puzzle
  • Practical 4: A* 8-puzzle and weighted graph
  • Practical 5: Bayes' theorem, Naive Bayes, Bayesian Network
  • Practical 6: ML workflow, Linear Regression, MNIST binary classification
  • Practical 7: K-fold, Decision Tree classification, Decision Tree regression
  • Practical 8: kNN and multiclass Logistic Regression

Optional dependencies

The code snippets are returned as text and do not require scikit-learn or pgmpy just to import the package. To execute a particular snippet, install the packages imported by that snippet. The MNIST example downloads data from OpenML and needs an internet connection on first run.

Metadata

Release files for ai-practical 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 ai-practical 1.0.0
File Size Uploaded Provenance
ai_practical-1.0.0.tar.gz 8.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-practical 1.0.0
File Interpreter ABI Platform
ai_practical-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / ai_practical-1.0.0.tar.gz

Download URL ai_practical-1.0.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
938d63153ad6bb8456528d0b36aeefa5320b2e72f758c7a825e8ab22124ecac2
BLAKE2b-256 checksum
How to use checksums
b7a66d141f8124693abfa51abc86b740c57f2b9cfb20575d3e0adca804fe386a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL ai_practical-1.0.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2600a0cc0be5e1dfcb78bdf94b4be8fddf27a78a4d15782fdda35c2d88ed058b
BLAKE2b-256 checksum
How to use checksums
f808202b002de1a7a8ffc89d925adfe51cb726cebbfe328c5d313fafaf41aa18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for ai-practical 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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