Skip to main content

Demos for the Neural Network Design & Deep Learning books

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nndesigndemos-1.1.5.tar.gz (32.2 MB view details)

Uploaded Source

Built Distribution

nndesigndemos-1.1.5-py3-none-any.whl (32.3 MB view details)

Uploaded Python 3

File details

Details for the file nndesigndemos-1.1.5.tar.gz.

File metadata

  • Download URL: nndesigndemos-1.1.5.tar.gz
  • Upload date:
  • Size: 32.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for nndesigndemos-1.1.5.tar.gz
Algorithm Hash digest
SHA256 3cf46f3715b6231907e555d8c5ec9115577ee1a555b9664bd8132ca605dee9f2
MD5 a06eecd88e03d9a24d057c87ca0db59c
BLAKE2b-256 2d63464eafe167b61d0e4615f01ca26ce123bffecdd24db56a66cfa407cbb2b1

See more details on using hashes here.

File details

Details for the file nndesigndemos-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nndesigndemos-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 433b98caeeff69f3f748830737e054d4ca492575a63d8d5699e2b033794bd46d
MD5 24b51cf2cd87d69d731f304b97d6dd89
BLAKE2b-256 31365025cad4bbe4e0152dd0d6c6705706dcf5100868b51e3f658cf7bcd6b442

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page