AI News, R Interface to the Keras Deep Learning Library

R Interface to the Keras Deep Learning Library

To show the power of neural networks we need a larger dataset to make use of.

A popular first dataset for applying neural networks is the MNIST Handwriting dataset, consisting of small black and white scans of handwritten numeric digits (0-9).

The values are pixel intensities between 0 and 255, so we will also normalize the values to be between 0 and 1: Finally, we want to process the response vector y into a different format as well.

These are fairly well-known choices for a simple dense neural network and allow us to show off many of the possibilities within the kerasR interface: We then compile the model with the “categorical_crossentropy” loss and fit it on the training data: Now that the model is trained, we could use the function keras_predict once again, however this would give us an output matrix with 10 columns.

It’s possible to get slightly higher with strictly dense layers by employing additional tricks and using larger models with more regularization.

On Monday, January 21, 2019

10.6: Neural Networks: Matrix Math Part 1 - The Nature of Code

In this video, I introduce the idea of "Linear Algebra" and explore the matrix math required for a simple neural network library. Next video: ...

Neural Network train in MATLAB

This video explain how to design and train a Neural Network in MATLAB.