Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Symbols Symbols = ('z' - 'a' + 1) + ('Z' - 'A' + 1) + 3 // Size is the link size Size = 8 // Input is the network input size Input = Size + 2*Size // S is the scaling factor for the softmax S = 1.0 - 1e-300 // Scale is the scale of the search Scale = 33 //96 // SetSize is the size of a symbol set SetSize = 4 // Samples is the number of samplee Samples = Scale * (Scale - 1) / 2 )
Variables ¶
Functions ¶
Types ¶
type Model ¶
type Model struct {
Projection matrix.CompressedRandomMatrix
Order matrix.CompressedRandomMatrix
Symbol matrix.CompressedRandomMatrix
}
Model model is the random matrix model
type Sample ¶
type Sample struct {
Rng *matrix.Rand
A matrix.CompressedGenerator
B matrix.CompressedGenerator
Order matrix.CompressedGenerator
Symbol matrix.CompressedGenerator
S int
Ranks []float32
Meta float32
Avg float64
Stddev float64
}
Sample is a sample
Click to show internal directories.
Click to hide internal directories.