Live data from Hacker News

How to build your own neural network from scratch in Python

towardsdatascience.com

1–10 of 46 posts

Re: How to build your own neural network from scratch in Python

#2
Too often you see articles like this and they start with

$ import a_whole_bunch_of_stuff

Good to see that this is not the case here :)

The fast.ai course has a similar exercise in the beginning, but you'll still import the weights from somewhere else.

Their fast.ai v1 library has a very short implementation too (loading the MINIST example dataset and then using Resnet18):

    from fastai import *  
    from fastai.data import *  
    untar_data(MNIST_PATH)  
    data = image_data_from_folder(MNIST_PATH)  
    learn = ConvLearner(data, tvm.resnet18, metrics=accuracy)  
    learn.fit(1)
Done!

Source: http://docs.fast.ai/

Re: How to build your own neural network from scratch in Python

#4
Thanks for submitting, this is going to come in handy for my education! I have an assignment next week which requires creating a neural network, then substituting various optimizers in place of backpropagation and comparing performance over iterations. Have found that simple numpy based NN's are easier to examine and connect the changes with the theory, this guide looks to help further with this understanding!

Re: How to build your own neural network from scratch in Python

#8
post #2

Too often you see articles like this and they start with $ import a_whole_bunch_of_stuff Good to see that this is not the case here :) The fast.ai course has a similar exercise in the beginning, but you'll still import the weights from somewhere else. Their fast.ai v1 library has a very short implementation too (loading the MINIST example dataset and then using Resnet18): from fastai import * from fastai.data import…

How to make cake, by Russell Peters

First, you get cake. Then you make it for 20 minutes. Then you have cake.

Re: How to build your own neural network from scratch in Python

#10

Another thing to try is calculating backpropagation by hand, on paper, with a small NN. This is what my mentor said his final exam on NN in college involved.

I would have thought calculus 1 was a prerequisite for that course.
Post reply on HN