Skip to main content

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)

Metadata

Release files for QCNN 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for QCNN 1.0.3
File Size Uploaded Provenance Actions
QCNN-1.0.3.tar.gz 4.3 kB Without provenance Details for QCNN-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for QCNN 1.0.3
File Interpreter ABI Platform Actions
QCNN-1.0.3-py2-none-any.whl Python 2 none any Details for QCNN-1.0.3-py2-none-any.whl

Total release size: 10.6 kB

Release files / QCNN-1.0.3.tar.gz

Download URL QCNN-1.0.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
682bec717af83066b4e0706592d963c1ee8104ecbebb68e867f10cd8464422f9
BLAKE2b-256 checksum
How to use checksums
8572f1551f0a0439e4913a38f4e9a3b03e9fb922295d1fcf283203cd1fef379e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / QCNN-1.0.3-py2-none-any.whl

Download URL QCNN-1.0.3-py2-none-any.whl
Size 6.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
703cab8c429d302d98b378cf52d1b1b04edaa5509a9f9d0d4384c63b4fd21754
BLAKE2b-256 checksum
How to use checksums
9b709ffcbb7fa9178401697b06b6e9a0dded7f8e4d5642860fa790f4a565f5a3
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for QCNN 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page