Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Symbols Symbols = 32 // Size is the link size Size = 16 // Input is the network input size Input = 2 * Size // S is the scaling factor for the softmax S = 1.0 - 1e-300 // Scale is the scale of the search Scale = 33 //48 96 // SymbolsCount is the number of unique symbols in a puzzle SymbolsCount = 32 // Samples is the number of samples Samples = Scale * (Scale - 1) / 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matrix ¶
Matrix is a float32 matrix
func NewZeroMatrix ¶
NewZeroMatrix creates a new float64 matrix of zeros
type RandomMatrix ¶
RandomMatrix is a random matrix
func NewRandomMatrix ¶
func NewRandomMatrix(cols, rows int, seed int64, r ...Random) RandomMatrix
NewRandomMatrix creates a new gaussian random matrix
func (RandomMatrix) Sample ¶
func (g RandomMatrix) Sample() Matrix
Sample generates a matrix from a gaussian distribution
type Sample ¶
type Sample struct { A RandomMatrix B RandomMatrix Graph []float64 Ranks []float64 Variance float64 }
Sample is a sample
Click to show internal directories.
Click to hide internal directories.