Documentation ¶
Index ¶
- func AlmostEqualFloat32(a, b, threshold float32) bool
- func AlmostEqualFloat32Slices(a, b []float32, threshold float32) error
- func ConstructBitset(values []int) []uint32
- func FindInBitsetUint32(bits uint32, pos uint32) bool
- func FirstNonZeroBit(bitset []uint32) (uint32, error)
- func Float64From8Bytes(bytes []byte, littleEndian bool) float32
- func MinInt(a, b int) int
- func NumMismatchedFloat32Slices(a, b []float32, threshold float32) (int, error)
- func NumberOfSetBits(bitset []uint32) uint32
- func ReadParamsUntilBlank(reader *bufio.Reader) (stringParams, error)
- func Sigmoid(x float32) float32
- func SigmoidFloat32SliceInplace(vec []float32)
- func SoftmaxFloat32Slice(rawValues []float32, outputValues []float32, startIndex int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlmostEqualFloat32 ¶
func ConstructBitset ¶
ConstructBitset return a slice where bits in place of `values` are set
func FindInBitsetUint32 ¶
func FirstNonZeroBit ¶
https://stackoverflow.com/questions/757059/position-of-least-significant-bit-that-is-set
func Float64From8Bytes ¶
Float64From8Bytes converts 8 bytes to float
func NumberOfSetBits ¶
https://stackoverflow.com/questions/109023/how-to-count-the-number-of-set-bits-in-a-32-bit-integer
func ReadParamsUntilBlank ¶
func SigmoidFloat32SliceInplace ¶
func SigmoidFloat32SliceInplace(vec []float32)
SigmoidFloat32SliceInplace applies sigmoid transformation to each value in slice. Inplace
func SoftmaxFloat32Slice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.