Skip to main content

Simple library to draw neural networks using pygame.

Project description

Python library made for drawing neural networks anytime in the script, using pygame.

!!Pygame required to use!!

If you don’t have it downloaded already, use: pip install pygame

Download: pip install drwnt

How to use: This library only has one function, being .draw_net().

To make this whole thing work we need a couple thing to pass in. First we are going to start by writing drwnt.draw_net() Then we pass in some stuff, being (In this order):

Window we want to draw it on

List of inputs

List of outputs

List of connections between single nodes

List of weights of these connections

List of bias values for each node

Location we want to draw it in (string), either:

“lu” for left up “ld” for left down “ru” for right up “rd” for right down

List of hidden nodes - optional

And now we are done, we let it do it’s job and we can just sit back and watch this magic!

Change Log

1.0

Official Release

1.1

Small changes in the description

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

drwnt-1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file drwnt-1.1.tar.gz.

File metadata

  • Download URL: drwnt-1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for drwnt-1.1.tar.gz
Algorithm Hash digest
SHA256 405047b1972772edf2c320acdb84f282fc8c1124ffecef68e1be9f68c2776b6f
MD5 17c365e96be8a431959169fe54746813
BLAKE2b-256 73b4bf12bf849b8d3271b8dc85fc03f5aedac2ad16be679567b3796e280fb279

See more details on using hashes here.

Supported by

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