Git Product home page Git Product logo

neural-networks's Introduction

********* Running N-Layer Neural Network ************

  1. Open nn-start.py or nn-start.ipynb files
  2. Modify model parameters:
  • 'dataset': set path to dataset. For now, dataset have to be 1 file with 1 target column (but equal or more labels, or text or integers)

  • 'target_column': name of target column in dataset

  • 'lambda': set regularization lambda value to "penalize" overfitting.

  • 'learning_rate': set the learning rate for gradient descent update steps.

  • 'iterations': set the number of training iterations

  • 'test_split': set percent of test split, which will be slice from loaded dataset (after shuffling).

  • 'hidden_layers': set the structure for hidden layers of the model.

    Format: list of integers. Each number - the amount of neurons per layer. Several numbers - several hidden layers.

    For example, input '[25]' will create:

    • #1 Input Layer (number of neurons == number of feauters/columns (excluding target column)) ===>>>
    • #2 Hidden Layer (one hidden layer with 25 neurons). Fully connected to 1# Input layer
    • #3 Output Layer (number of neurons, equals the number of classes in target column). Fully connected to 2# Hidden layer

    For example, input '[25, 10]' will create:

    • #1 Input Layer (number of neurons == number of feauters/columns (excluding target column)) ===>>>
    • #2 Hidden Layer (first hidden layer with 25 neurons). Fully connected to 1# Input layer
    • #3 Hidden Layer (second hidden layer with 10 neurons). Fully connected to 2# Hidden layer
    • #4 Output Layer (number of neurons, equals the number of classes in target column). Fully connected to 3# Hidden layer
  • 'print_split': while training proccess, it will print training results each "print_split" iteration.

  • 'func_type': type of activation function to use. Option (for now): 'sigmoid', 'tanh'.

  1. Run file.

********* Information ************

Implementation of algorythm completed based on numpy vectorization of forward and back propagations.

neural-networks's People

Contributors

umachkaalex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.