levels

package
v2.0.0-dev0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Levels

type Levels int32 //enums:enum
const (
	Cycle Levels = iota
	Trial
	Epoch
	Run
)
const LevelsN Levels = 4

LevelsN is the highest valid value for type Levels, plus one.

func LevelsValues

func LevelsValues() []Levels

LevelsValues returns all possible values for the type Levels.

func (Levels) Desc

func (i Levels) Desc() string

Desc returns the description of the Levels value.

func (Levels) Int64

func (i Levels) Int64() int64

Int64 returns the Levels value as an int64.

func (Levels) MarshalText

func (i Levels) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (*Levels) SetInt64

func (i *Levels) SetInt64(in int64)

SetInt64 sets the Levels value from an int64.

func (*Levels) SetString

func (i *Levels) SetString(s string) error

SetString sets the Levels value from its string representation, and returns an error if the string is invalid.

func (Levels) String

func (i Levels) String() string

String returns the string representation of this Levels value.

func (*Levels) UnmarshalText

func (i *Levels) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

func (Levels) Values

func (i Levels) Values() []enums.Enum

Values returns all possible values for the type Levels.

type Modes

type Modes int32 //enums:enum
const (
	Train Modes = iota
	Test
)
const ModesN Modes = 2

ModesN is the highest valid value for type Modes, plus one.

func ModesValues

func ModesValues() []Modes

ModesValues returns all possible values for the type Modes.

func (Modes) Desc

func (i Modes) Desc() string

Desc returns the description of the Modes value.

func (Modes) Int64

func (i Modes) Int64() int64

Int64 returns the Modes value as an int64.

func (Modes) MarshalText

func (i Modes) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (*Modes) SetInt64

func (i *Modes) SetInt64(in int64)

SetInt64 sets the Modes value from an int64.

func (*Modes) SetString

func (i *Modes) SetString(s string) error

SetString sets the Modes value from its string representation, and returns an error if the string is invalid.

func (Modes) String

func (i Modes) String() string

String returns the string representation of this Modes value.

func (*Modes) UnmarshalText

func (i *Modes) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

func (Modes) Values

func (i Modes) Values() []enums.Enum

Values returns all possible values for the type Modes.

Jump to

Keyboard shortcuts

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