Skip to main content

EasyNN is a python package designed to provide an easy-to-use neural network. The package is designed to work right out of the box, while also allowing the user to customize features as they see fit.

Project description

EasyNN - Neural Networks made Easy

EasyNN is a python package designed to provide an easy-to-use Neural Network. The package is designed to work right out of the box with multiple datasets, while also allowing the user to customize features as they see fit.

EasyNN requires Python version 3.9.7 or greater.

See our wiki for more information and Datasets.

Installation:

Run python's pip3 to install:

pip3 install EasyNN

Model:

from EasyNN.examples.mnist.number.trained import model

# Classify the an image in the dataset
print(model.classify(image))

Dataset Example:

from EasyNN.examples.mnist.number.trained import model
from EasyNN.examples.mnist.number.data import dataset

images, labels = dataset

# Classify what the second image is in the dataset.
print(model.classify(images[1]))

Dataset example output:

Downloading - number_parameters.npz:
[################################] 1769/1769 - 00:00:00
Downloading - number_structure.pkl:
[################################] 10700/10700 - 00:00:00
Downloading - number_dataset.npz:
[################################] 11221/11221 - 00:00:00
0

Full example:

More info can be found about converting images in the utilities section.

from EasyNN.examples.mnist.number.trained import model
from EasyNN.utilities.image.preprocess import image
from EasyNN.utilities.download import download

# Download an example image.
download("four.jpg","https://bit.ly/3lAJrMe")

format_options = dict(
    grayscale=True,
    invert=True,
    process=True,
    contrast=30,
    resize=(28, 28),
    rotate=3,
)

# Converting your image into the correct format for the mnist number dataset.
image = image("four.jpg").format(**format_options)

print(model.classify(image))

model.show(image)

Output:

Downloading - number_parameters.npz:
[################################] 1769/1769 - 00:00:00
Downloading - number_structure.pkl:
[################################] 10700/10700 - 00:00:00
Downloading - four.jpg:
[################################] 1371/1371 - 00:00:00
4

Image output:

To see more examples with many other datasets. Please visit our wiki.

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

EasyNN-0.0.24.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

EasyNN-0.0.24-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

File details

Details for the file EasyNN-0.0.24.tar.gz.

File metadata

  • Download URL: EasyNN-0.0.24.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for EasyNN-0.0.24.tar.gz
Algorithm Hash digest
SHA256 46db753f40f0ad65c43a153c23349f7c35c9e4145a62ddf10f8f49718bba951b
MD5 3d3f8d18256accfb0b402d49b882d431
BLAKE2b-256 d6bbc1aa307d8a1c2651e75572b254f748bb55b54e932e7ef143d03c9c484445

See more details on using hashes here.

File details

Details for the file EasyNN-0.0.24-py3-none-any.whl.

File metadata

  • Download URL: EasyNN-0.0.24-py3-none-any.whl
  • Upload date:
  • Size: 45.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for EasyNN-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 a7cd1a36ed63af1b9cdbb121a7b34b5c0a178541571597ddefed42a48c900a95
MD5 96940f8a8f6c08500dce2fbdd2be1ca9
BLAKE2b-256 2ae65fe53effec6d822ede85acf4ce581ce7b465a7005eece7a04850834127f9

See more details on using hashes here.

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