How to build your own neural network from scratch in Python
Too often you see articles like this and they start with<p>$ import a_whole_bunch_of_stuff<p>Good to see that this is not the case here :)<p>The fast.ai course has a similar exercise in the beginning, but you'll still import the weights from somewhere else.<p>Their fast.ai v1 library has a very short implementation too (loading the MINIST example dataset and then using Resnet18):<p><pre><code>    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)
</code></pre>
Done!<p>Source: <a href="http://docs.fast.ai/" rel="nofollow">http://docs.fast.ai/</a>