Documentation ¶
Overview ¶
This package is intended to be used by other ml-essentials' packages. There is nothing of value here for as far as end users are concerned.
Index ¶
- func AssertBoolSliceEquals(name string, actual []bool, expected []bool, t *testing.T) bool
- func AssertFalse(message string, value bool, t *testing.T) bool
- func AssertFloatEquals(name string, actual float64, expected float64, t *testing.T) bool
- func AssertFloatSliceEquals(name string, actual []float64, expected []float64, t *testing.T) bool
- func AssertIntEquals(name string, actual int, expected int, t *testing.T) bool
- func AssertIntNotEquals(name string, actual int, notExpected int, t *testing.T) bool
- func AssertIntSliceEquals(name string, actual []int, expected []int, t *testing.T) bool
- func AssertIntSliceNotEquals(name string, actual []int, notExpected []int, t *testing.T) bool
- func AssertNoError(err error, t *testing.T) bool
- func AssertStringEquals(name string, actual string, expected string, t *testing.T) bool
- func AssertStringNotEquals(name string, actual string, notExpected string, t *testing.T) bool
- func AssertStringSliceEquals(name string, actual []string, expected []string, orderMatters bool, ...) bool
- func AssertTrue(message string, value bool, t *testing.T) bool
- func FloatArgSort(values []float64, readonly bool) []int
- func HashIntSlice(indices []int) int
- func IndexOfString(element string, array []string) int
- func MakeRange(from int, to int, interval int) []int
- func SplitStringSlice(strings []string, nGroups int) [][]string
- func StringSetKeys(set map[string]bool) []string
- func ToStringSet(strings []string) map[string]bool
- type GroupIndexer
- type ProcessedJob
- type StringQ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBoolSliceEquals ¶
func AssertFloatEquals ¶
func AssertFloatSliceEquals ¶
func AssertIntEquals ¶
func AssertIntNotEquals ¶
func AssertIntSliceEquals ¶
func AssertIntSliceNotEquals ¶
func AssertStringEquals ¶
func AssertStringNotEquals ¶
func AssertStringSliceEquals ¶
func FloatArgSort ¶
func HashIntSlice ¶
func IndexOfString ¶
func SplitStringSlice ¶
func StringSetKeys ¶
func ToStringSet ¶
Types ¶
type GroupIndexer ¶
type GroupIndexer struct { NGroups int // contains filtered or unexported fields }
func CreateGroupIndexer ¶
func CreateGroupIndexer(nElements int, nGroups int) GroupIndexer
func (GroupIndexer) HasNext ¶
func (indexer GroupIndexer) HasNext() bool
func (*GroupIndexer) Initialize ¶
func (indexer *GroupIndexer) Initialize(nElements int, nGroups int)
type ProcessedJob ¶
type StringQ ¶
type StringQ struct { Keys chan string Errors chan ProcessedJob Workers int NumJobs int }
func CreateStringQueue ¶
func (StringQ) Notify ¶
func (q StringQ) Notify(err ProcessedJob)
func (StringQ) Results ¶
func (q StringQ) Results() []ProcessedJob
Click to show internal directories.
Click to hide internal directories.