Metadata-Version: 2.4
Name: npsai
Version: 1.1.1
Summary: Question and full-code reference for AI assignments 2 3 4 6 8 9
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy<3,>=1.26
Requires-Dist: pandas<4,>=2.2
Requires-Dist: scikit-learn<2,>=1.5
Requires-Dist: matplotlib<4,>=3.8
Requires-Dist: networkx<4,>=3.2
Requires-Dist: pgmpy<2,>=1.0

# Num AI lab notebooks — complete cell-by-cell reference

```bash
pip install --upgrade npsai
```

```python
import Num as NPS
NPS.show()                          # assignment list and cell counts
NPS.assignment2()                   # every original cell and saved text output
NPS.assignment2(cell=3)             # only notebook cell 3
NPS.assignment6_model_checking()    # full named functions still work
NPS.show(8, outputs=False)          # hide saved outputs
NPS.cells(9)                       # all original cells
print(NPS.code(2))                 # every original code cell, labeled
print(NPS.solution_code(2))        # corrected portable study solution
NPS.export(2, directory="lab2")     # notebook, cells, original code, corrected code
NPS.run(2)                         # execute the corrected study solution
```

Assignments 2, 3, 4, 6, 8 and 9 contain **all 63 original notebook cells**, in their
original order, including empty cells, all subprograms, markdown questions and
saved outputs. Numbers are 1-based positions in the original notebook, counting
markdown and empty cells. Lab 2 has 5 cells, lab 3 has 4, lab 4 has 3, lab 6 has 37,
lab 8 has 9 and lab 9 has 5.

`NPS.assignment3_bfs_dfs()`, `NPS.assignment4_informed_search()`,
`NPS.assignment8_bayes_theorem()` and `NPS.assignment9_bayesian_belief_network()`
also display every cell. All assignment functions accept `cell=` and `outputs=`.

Each cell with saved results has an `Output:` heading directly below its code.
Saved outputs are historical notebook results, not newly executed results.
Saved plots are retained inside the exported `.ipynb` files. Open those files in
Jupyter or VS Code to see images. Student identity comments and private notebook
metadata are removed, and the original machine-specific CSV path becomes `spam.csv`.
Original algorithm code, notebook commands and errors are otherwise preserved.
Lab 8's original first cell references `df` before its CSV-loading cell; this is
visible in the reference and should not be assumed executable in fresh order.
Use `NPS.run(8, csv_path="spam.csv")` for the corrected CSV workflow.
Without a CSV, the corrected workflow uses 32 synthetic demo rows, whose accuracy
is not a result on the original dataset. Original saved scores remain labeled.

`run()` continues to execute the corrected portable study solutions. `code()` now
returns all original code cells; `solution_code()` exposes the corrected version.
Original notebook commands such as `!pip` require a notebook kernel.
Question sheets for labs 8 and 9 were unavailable; their top-level question summaries
are reconstructed from submitted code. Any original markdown is retained in full.

Python 3.10+; Python 3.12 recommended. Import is case-sensitive: `import Num as NPS`.
Use as a study reference and follow your examination's resource rules.
