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 hashes)

Uploaded Source

Supported by

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