Skip to main content

nndesigndemos

This is a set of demonstrations paired with the Neural Network Design & Neural Network Design: Deep Learning books written in Python.

Installation

nndesigndemos is supported on macOS, Linux and Windows. It uses PyQt6, so your OS version needs to be compatible with it. If you get an installation error, this is most likely the reason.

  • For Linux platform, if you meet the following or similar problems when you install the nndesigndemos or run the code after installing it:

    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, offscreen, wayland, wayland-egl, linuxfb, minimal, xcb, minimalegl, vkkhrdisplay, vnc.
    
    Aborted (core dumped)
    

    you need to install a plugin first using command line:

    sudo apt-get install -y libxcb-cursor-dev
    
  • Sometime for macOS or Linux platform, we may need this package as well:

    sudo apt-get install pulseaudio
    

Installing via pip

The quick way is simply to install via pip install nndesigndemos, which works in most cases.

The recommended way is to create a virtual environment to avoid dependency issues. Here is an easy way to do so:

python3 -m venv env
source env/bin/activate  # macOS/Linux
env\Scripts\activate.bat  # Windows
pip install nndesigndemos

To deactivate the virtual environment, just type deactivate.

Usage

All the demos start from the same main menu, which can be accessed by entering the Python Shell and running

from nndesigndemos import nndtoc
nndtoc()

After doing so, a window will pop up, and you will be able to navigate the demos listed by book and then by chapter.

There are some demos that have sound, so if you want to mute them just run nndtoc(play_sound=False) instead.

The original software for these demos runs on MATLAB, so for every section of the Neural Network Design book where you see the MATLAB logo, there will be a corresponding Python demo in this package. The second book is in progress.

If you are using multiple monitors and switching between them, you may need to restart your computer to avoid scaling issues.

Dependencies

These are the packages needed to run all the demos. These specific versions are known to work, but this does not mean older or newer versions will cause any issues.

  • Python 3.9+
  • PyQt6 6.7.1
  • NumPy 2.0.1
  • SciPy 1.13.1
  • Matplotlib 3.9.2

License

nndesigndemos is available under MIT license.

Metadata

Release files for nndesigndemos 1.3.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 nndesigndemos 1.3.0
File Size Uploaded Provenance
nndesigndemos-1.3.0.tar.gz 33.0 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 66.3 MB

Release files / nndesigndemos-1.3.0.tar.gz

Download URL nndesigndemos-1.3.0.tar.gz
Size 33.0 MB
Tags Source
SHA-256 checksum
How to use checksums
6cc35db53f379d0a6c29ffd1221e942716f929074e640fb5032c1d8bd5266283
BLAKE2b-256 checksum
How to use checksums
fa5f4aa1bb7b592d9cf6fde61e342d372d050bdf0cfe98b70e10622d9f0fae08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / nndesigndemos-1.3.0-py3-none-any.whl

Download URL nndesigndemos-1.3.0-py3-none-any.whl
Size 33.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d62ee6942158af978a7be8066ef4a4dc873f083c82870c0870938986c873943e
BLAKE2b-256 checksum
How to use checksums
8dfc24958000402426349ff5ef1c308a406bb88c659bd4a476844c3cac3f18f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for nndesigndemos 1.3.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.

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