Documentation ¶
Index ¶
- func AlmostEqualFloat64(a, b, threshold float64) bool
- func AlmostEqualFloat64Slices(a, b []float64, threshold float64) error
- func ConstructBitset(values []int) []uint32
- func FindInBitsetUint32(bits uint32, pos uint32) bool
- func FirstNonZeroBit(bitset []uint32) (uint32, error)
- func Float64FromBytes(bytes []byte, littleEndian bool) float64
- func MinInt(a, b int) int
- func NumMismatchedFloat64Slices(a, b []float64, threshold float64) (int, error)
- func NumberOfSetBits(bitset []uint32) uint32
- func ReadParamsUntilBlank(reader *bufio.Reader) (stringParams, error)
- func Sigmoid(x float64) float64
- func SigmoidFloat64SliceInplace(vec []float64)
- func SoftmaxFloat64Slice(rawValues []float64, outputValues []float64, startIndex int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlmostEqualFloat64 ¶
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 Float64FromBytes ¶
Float64FromBytes 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 SigmoidFloat64SliceInplace ¶
func SigmoidFloat64SliceInplace(vec []float64)
SigmoidFloat64SliceInplace applies sigmoid transformation to each value in slice. Inplace
func SoftmaxFloat64Slice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.