Skip to main content

Deep Neural Network module for classification/regression

Project description

Description

Quantcore's implementation of a deep neural network. Used for classification and regression.

#Usage

The class takes a few requirements, # input nodes, # hidden nodes, # layers, # output nodes, # learning rate, # number of epochs, # output type (specified with r for regression, c for classification), # train test split = 0.8 (percentage you would like to train on), # test = True (turn it off if you don't want to test), split = True (turn it off if you don't want the data split)

The train function takes one input, which is a DATAFRAME with the inputs and the outputs on the right side, e.g.

inputs = dataframe[:-1]
outputs = dataframe[-1]

Do not separate inputs from outputs, just have the outputs as the righter most column in your df

The call to train the function is class_.train(input)

The call to test is class_.feed_forward(input)

#Installation

pip install QCNN

#Sample Code


from QCNN import NeuralNetwork
import pandas as pd


nn= NeuralNetwork(2,2,3,1,.1,100000, train_test_split =1, split=False)

data_dict = {0:{'input1':0,'input2':0,'output':0},
            1:{'input1':1,'input2':0,'output':1},
            2:{'input1':0,'input2':1,'output':1},
            3:{'input1':1,'input2':1,'output':0}
            }

df = pd.DataFrame.from_dict(data_dict, orient = 'index')



nn.train(df)

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

QCNN-1.0.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

QCNN-1.0.3-py2-none-any.whl (6.3 kB view details)

Uploaded Python 2

File details

Details for the file QCNN-1.0.3.tar.gz.

File metadata

  • Download URL: QCNN-1.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for QCNN-1.0.3.tar.gz
Algorithm Hash digest
SHA256 682bec717af83066b4e0706592d963c1ee8104ecbebb68e867f10cd8464422f9
MD5 b84862151e5bc3b5dc5ea34b1497b592
BLAKE2b-256 8572f1551f0a0439e4913a38f4e9a3b03e9fb922295d1fcf283203cd1fef379e

See more details on using hashes here.

File details

Details for the file QCNN-1.0.3-py2-none-any.whl.

File metadata

  • Download URL: QCNN-1.0.3-py2-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for QCNN-1.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 703cab8c429d302d98b378cf52d1b1b04edaa5509a9f9d0d4384c63b4fd21754
MD5 82ae6097882e2f49a176740245144371
BLAKE2b-256 9b709ffcbb7fa9178401697b06b6e9a0dded7f8e4d5642860fa790f4a565f5a3

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