Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateCostGradient(output, target float64) float64
- func Run(ctx context.Context, datasetProvider IDatasetProvider, ...) error
- func ValidationCost(output, target float64) float64
- type Gradient
- type IDatasetProvider
- type ITunableEvaluator
- type Sample
- type ThreadData
- type Trainer
Constants ¶
View Source
const ( Beta1 float64 = 0.9 Beta2 float64 = 0.999 )
View Source
const (
BatchSize = 16384
)
Variables ¶
View Source
var (
LearningRate = 0.01
)
Functions ¶
func CalculateCostGradient ¶
func Run ¶
func Run( ctx context.Context, datasetProvider IDatasetProvider, validationProvider IDatasetProvider, tunableEvaluator ITunableEvaluator, threads int, epochs int, sigmoidScale float64, ) error
func ValidationCost ¶
Types ¶
type IDatasetProvider ¶
type IDatasetProvider interface {
Load(ctx context.Context, dataset chan<- domain.DatasetItem) error
}
type ITunableEvaluator ¶
type ThreadData ¶
type ThreadData struct {
// contains filtered or unexported fields
}
type Trainer ¶
type Trainer struct {
// contains filtered or unexported fields
}
func NewTrainer ¶
func (*Trainer) SigmoidPrime ¶
Click to show internal directories.
Click to hide internal directories.