Skip to main content

Dendrite-Neural-Networks is an implementation of processing units that performed classification using closed decision boundaries.

Project description

Dendrite-Neural-Networks

Dendrite-Neural-Networks is a Python library for dealing with closed boundary classification units, like Dendrite Morphological Neuron (DMN), Dendrite Ellipsoidal Neuron (DEN) and Dendrite Spherical Neuron (DSN).

Installation

Use the package manager pip to install Dendrite-Neural-Networks.

pip install Dendrite-Neural-Networks

Usage

from DEN import DENlayer
from DMN import DMNlayer
from DSN import DSNlayer

from PreTrain.HpC import HSpC
from PreTrain.HpC import HEpC
from PreTrain.HpC import HBpC

from PreTrain.kmeans import bkmeans
from PreTrain.kmeans import ekmeans
from PreTrain.kmeans import skmeans

# returns 'array' with the propose initial parameters
#x: Input pattern
#y: Labels
dendrites  = HBpC.HBpC(x,y,0.0001)
dendrites  = HEpC.HEpC(x,y)
dendrites  = HSpC.HSpC(x,y,0.0001)
dendrites  = bkmeans.bkmeans(x,y,[3,3,3],0.01)
dendrites  = ekmeans.ekmeans(x,y,[3])
dendrites  = skmeans.skmeans(x,y,[2],0.01)


# It's an implementation of a modified Keras layer
DMNlayer(2,dendrites, activation = "sigmoid", input_shape = (np.shape(x)[1],)))
DENlayer(2,dendrites, activation = "sigmoid", input_shape = (np.shape(x)[1],)))
DSNlayer(2,dendrites, activation = "sigmoid", input_shape = (np.shape(x)[1],)))

# It's an implementation of a modified Keras layer. For random initialization of parameters
DMNlayer(2, activation = "sigmoid", input_shape = (np.shape(x)[1],)))
DENlayer(2, activation = "sigmoid", input_shape = (np.shape(x)[1],)))
DSNlayer(2, activation = "sigmoid", input_shape = (np.shape(x)[1],)))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU GPLv3

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Dendrite_Neural_Networks-0.0.9-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file Dendrite_Neural_Networks-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: Dendrite_Neural_Networks-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.11

File hashes

Hashes for Dendrite_Neural_Networks-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ee11a2aab62a850325e4b4a320338aa108c0545658301e0b3a7fd42d2b07b320
MD5 19dc8dbfc51aad927d20ab84560a7dd9
BLAKE2b-256 ca7f352d42beb22d8ebb7947964df3953650595b876b946d87e39fd397f06598

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