Code a Neural Network with Numpy

Introduction The vectorized operations have been discussed in the last post Maths in a Neural Network: Vectorization. This post will focus on implementing the equations with numpy. Equations proved in the previous posts [1] [2]: Note that this network takes one sample input at a time, I'll discuss batch prediction/training later. Feed-forward: $latex A^{(l)}= f^{(l)}(Z^{(l)})&s=2$ $latex … Continue reading Code a Neural Network with Numpy

Advertisements

Maths in a Neural Network: Vectorization

Introduction The element-wise operations have been discussed in the last post Maths in a Neural Network: Element-wise. This post will focus on how to represent all the equations found in the previous post in vectors. 1 Feed-forward Let's consider a 2-3-2 network. 1.1 Element-wise operations $latex a^{(l)}_p = f^{(l)}(z^{(l)}_p)\quad (1)&s=2$ $latex z^{(l)}_p = \sum_q w^{(l)}_{(qp)} a^{(l-1)}_q … Continue reading Maths in a Neural Network: Vectorization

Solving “This extension may have been corrupted” in Chrome version 59

Background I found our extensions being detected as corrupted in the Chrome stable release version 59. After some research, I found a related bug report. Basically, if the extension contains files with file size with is the multiple of 4096, the extension will be marked as corrupted. Printing all files' name and size This following python code … Continue reading Solving “This extension may have been corrupted” in Chrome version 59

Explore Firebase Cloud Functions

Introduction: Firebase, Backend as a service, released a new feature Cloud Functions. It allows developers write back-end code without worrying handling a server. In the following blog post, I explored how fast it is to create a simple HTTP request listener. 1. Install the Firebase CLI tools: npm install -g firebase-tools 2. Login with Google … Continue reading Explore Firebase Cloud Functions

Django Template Translation (i18n) for Window

Setup Download gettext  http://mlocati.github.io/gettext-iconv-windows/ Install the binary executable and make sure select "Add application directory to your environmental path" option. Run the following instruction through manage.py: makemessages -l en   If you are using PyCharm, pressing ALT + CTRL + R will show you the manage.py task popup If everything is fine you will see the … Continue reading Django Template Translation (i18n) for Window