lib

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CartesianProduct added in v1.0.5

func CartesianProduct[T any](params ...[]T) chan []T

CartesianProduct takes slices of any type T and returns a channel receiving cartesian products

func SampleFromWeights added in v1.0.6

func SampleFromWeights(weights []float64) int

func Softmax

func Softmax(inputs []float64) []float64

func SoftmaxSample

func SoftmaxSample(inputs []float64) int

func SoftmaxWithTemp added in v1.0.6

func SoftmaxWithTemp(inputs []float64, temp float64) []float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL