Skip to content

StevenSYT/My-Neural-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My Neural Network

This neural network can also be called Multilayer Perceptron. The activation function is sigmoid.

How to use this repo

Command line instruction: we recommend using python3 to run this program The program includes two .py files: preProcessing.py and NeNet.py.

Pre-Process

the input parameters to the preProcessing.py file are:

for example

python3 preProcessing.py ds1 'postProcessed.csv'

The above would imply that the training dataset is 'ds1' which is the first dataset listed above. The output path is 'currentDirectory/postProcessed.csv'

Back-propagation

The input parameters to the NeNet.py are as follows:

  • input dataset – a complete path the post-processed input dataset which you specfied for the output path of the preProcessing.py

  • training percent – percentage of the dataset to be used for training

  • maximum_iterations – Maximum number of iterations that your algorithm will run. This parameter is used so that your program terminates in a reasonable time.

  • number of hidden layers

  • number of neurons in each hidden layer

for example

python3 NeNet.py 'postProcessed.csv' 80 4000 2 10 10

The above would imply that the dataset is 'postProcessed.csv', the percent of the dataset to be used for training is 80%, the maximum number of iterations is 4000, and there are 2 hidden layers with (10, 10) neurons. Your program would have to initialize the weights randomly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages