Giter Site home page Giter Site logo

torrensjoaquin / multivariant_nonlinear_regression_in_vba_small_neural_network Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 1.83 MB

Despite the big boom in Neural Networks, the common worker is still outside of its capabilities. The idea of the proyect is to give an easy tool for small neural networks (something around 6 layers and 200 neurons maybe). It has to run without any other software than Microsoft Excel.

vba neural-network multivariant-nonlinear-regression excel

multivariant_nonlinear_regression_in_vba_small_neural_network's Introduction

Multivariant-Nonlinear-Regression-in-VBA-Small-Neural-Network

Despite the big boom in Neural Networks, the common workers are still outside of its capabilities.

The idea of this proyect is to provide an easy tool for small neural networks (something around 6 layers and 200 neurons maybe).

It has to run without any other software than Microsoft Excel.

This work was inspired by Emanuele Bonura's Blog called "A Neural Network in 11 lines…of VBA!" and Carlos Ruiz, my former teacher from UTN FRRo.

You will need a sheet called "Data" were you can put the data. (x's [inputs] on the left, y's [outputs] on the right, and the first row will be the header), another called "Test" with the same format.

In addition, an Empty sheet called "Result" where the code of the formula will be generated.

A Learning Ratio Range Test is also included.

Tuning of the following parameters in the modules is required:

n_hid_layer = 'Number of hidden layers

x_features = 'Number of x features

y_features = 'Number of y features

n_neurons_hid_layer(x) = 'Number of neurons in the hidden layer x (change the x for as many layers you have set)

SizeOfDataBase = 'The size of the database

UploadOldModel = 'Train more an existing model.

ChangeArquitecture = 'It's common, and recommended, start with a shallow neural network and start increasing/decreasing neurons/layers. If it's true, will recycle old weights and initialize new ones.

SamplesInBatch = 'Number of Samples on each Batch. Maximum of 1024

NumberOfIterations= Number of iterations

LearningRatio = 'You can perform a range test every time you want. This value will depend on the dataset and NN architecture.

Comming Soon:

Code Optimization.

More activation functions to be chosen.

More loss functions to be chosen.

GUI.

During this work Softplus, Sigmoid, Tanh, Relu and LeakyRelu activation functions were implemented. Relu is in the stable versión. (Yes, we all look at ReLu at first and say, No Way!, but today is the right choice)

Please. Have the inmediate window visible. Data will be shown

Diagnosis tool:

If the sheet named "Result2" is added. A function of the raw output of each layer will be displayed.

This will be usefull for dimensionality reduction (autoencoders), and network health diagnosis.

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.