debug

package
v0.0.0-...-32ffa8f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageSliceToBase64

func ImageSliceToBase64(imgs []image.Image) []string

Types

type CLIDebugger

type CLIDebugger struct {
	// contains filtered or unexported fields
}

func (*CLIDebugger) Debug

func (d *CLIDebugger) Debug(status <-chan string, layerInfo <-chan []*LayerInfo, trainInfo <-chan *TrainInfo, testInfo <-chan *TestInfo)

type CSVDebugger

type CSVDebugger struct {
}

func (*CSVDebugger) Debug

func (d *CSVDebugger) Debug(status <-chan string, layerInfo <-chan []*LayerInfo, trainInfo <-chan *TrainInfo, testInfo <-chan *TestInfo)

type DebugLayer

type DebugLayer interface {
	weight.Layer

	GetDebugInfo() []*LayerInfo
}

type HttpDebugger

type HttpDebugger struct {
	// contains filtered or unexported fields
}

func (*HttpDebugger) Debug

func (panel *HttpDebugger) Debug(status <-chan string, layerInfo <-chan []*LayerInfo, trainInfo <-chan *TrainInfo, testInfo <-chan *TestInfo)

type LayerInfo

type LayerInfo struct {
	ID string

	WeightsImg []image.Image
	BiasImg    []image.Image
	OutImg     []image.Image
	ErrImg     []image.Image

	WeightsStats *tensor.Stats
	BiasStats    *tensor.Stats
	OutStats     *tensor.Stats
	ErrStats     *tensor.Stats

	Other map[string]interface{}
}

func (*LayerInfo) MarshalJSON

func (li *LayerInfo) MarshalJSON() ([]byte, error)

Encode images to png/base64 if marshaling to json

type NetDebugger

type NetDebugger interface {
	Debug(status <-chan string, layerInfo <-chan []*LayerInfo, trainInfo <-chan *TrainInfo, testInfo <-chan *TestInfo)
}

type TestInfo

type TestInfo struct {
	Epoch    int
	Loss     float64
	Accuracy float64
}

type TrainInfo

type TrainInfo struct {
	Epoch             int
	Epochs            int
	Batch             int
	Batches           int
	Loss              float64
	Accuracy          float64
	ExamplesPerSecond float64
}

Jump to

Keyboard shortcuts

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