Scripting the neural network

With the new project set up, we can now start writing our scripts to build a neural network. Go back to Unity and perform the following steps:

  1. Open the ARCoreML/Scripts folder and then from the menu, select Assets | Create | C# Script. Name the script as Neuron and double-click to open it in your editor of choice.
The code for this example was originally sourced from https://github.com/Blueteak/Unity-Neural-Network.git, which shows an excellent example of a simple and concise neural network with training explicitly developed for Unity. We will modify the original code for our needs, but feel free to check out and contribute to the original source if you are interested. This code is great for learning, but certainly, ...

Get Learn ARCore - Fundamentals of Google ARCore now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.