GithubHelp home page GithubHelp logo

alexpasqua / nns-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 4.63 MB

Implementation from scratch of fully connected neural networks trainable through SGD with backpropagation

License: GNU General Public License v3.0

Python 100.00%
artificial-intelligence machine-learning neural-networks unipi

nns-from-scratch's People

Contributors

alexpasqua avatar gaetanoantonicchio avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nns-from-scratch's Issues

Error in testing sections of functions scripts

In the main section of the functions scripts (acts & losses), the objects in the dictionary aren't used, we're calling directly the functions but for testing purposes, at this point, it doesn't make sense to do so

regularization

Ho provato ad aggiungere la regularization tramite la funzione che creammo.
La funzione che abbiamo creato, concettualmente è la seguente:

lambda * sum ( weights) **2

Mi è sorto un dubbio. Questa formula è valida quando viene aggiunta alla loss prima di essere derivata, quindi prima di passare dal ciclo di back.
Nel momento in cui dobbiamo usarla però, a noi ci serve 2lambdaw
la somma dovrebbe essere a livello teorico, ma quando noi aggiorniamo i pesi w, non dobbiamo considerare la somma del vettore pesi, ma soltanto il valore w che vogliamo aggiornare. Giusto?
Ad esempio

net = x1 w1 + x2 w2 + w0

update w1

w1 = w1 + eta * grad_w1 -lambda * w1 <--- giusto? Non dobbiamo mica considerare la somma di w1,w2 qui

issue with random weight_init

When weight_init is set to "random" the Network is unable to see the values passed as upper_lim and lower_lim.
It always return random values in range (0, 1).

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.