August 2019
Intermediate to advanced
242 pages
5h 45m
English
The most feature-complete library that could potentially be useful for DL (aside from Gorgonia, which we will cover in later sections) is Gonum. The simplest description would be that Gonum attempts to emulate much of the functionality of the well-known scientific computing libraries in Python, namely, NumPy and SciPy.
Let's take a look at a code example for constructing a matrix we might use to represent inputs to a DNN.
Initialize a matrix and back it with some numbers, as follows:
// Initialize a matrix of zeros with 3 rows and 4 columns.d := mat.NewDense(3, 4, nil)fmt.Printf("%v\n", mat.Formatted(d))// Initialize a matrix with pre-allocated data. Data has row-major storage.Read now
Unlock full access