-
Book Overview & Buying
-
Table Of Contents
Hands-On Machine Learning with C++ - Second Edition
By :
Many machine learning libraries have an API for creating and working with neural networks. All the libraries we used in the previous chapters—mlpack, Dlib, and Flashlight—are supported by neural networks. But there are also specialized frameworks for neural networks; for example, one popular one is the PyTorch framework. The difference between a specialized library and a general-purpose library is that a specialized library supports more configurable options and different network types, layers, and loss functions. Also, specialized libraries usually have more modern instruments, and these instruments are introduced to their APIs more quickly.
In this section, we’ll create a simple MLP for a regression task with the mlpack, Dlib, and Flashlight libraries. We’ll also use the PyTorch C++ API to create a more advanced network—a convolutional deep neural network with the LeNet5 architecture,...