MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Machine-Learning-Projects / visualize

Function visualize

Chapter07/mnist.go:143–194  ·  view source on GitHub ↗

visualize visualizes the first N images given a data tensor that is made up of float64s. It's arranged into (rows, 10) image. Row counts are calculated by dividing N by 10 - we only ever want 10 columns. For simplicity's sake, we will truncate any remainders.

(data tensor.Tensor, rows, cols int, filename string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.70

Calls 2

makeRSFunction · 0.85
reversePixelWeightFunction · 0.70

Tested by

no test coverage detected