tag

package
v0.0.0-...-58e73a0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTaskFile

func CreateTaskFile(t *Task) (*bufio.Writer, string)

Types

type Activation

type Activation struct {
	*HiddenLayer
}

func (*Activation) Name

func (a *Activation) Name() string

func (*Activation) Next

func (a *Activation) Next() TagOp

func (*Activation) Parse

func (a *Activation) Parse(writer *bufio.Writer)

<activation name="sigmoid" type="sigmoid"></activation>

type Add

type Add struct {
	*HiddenLayer
}

func (*Add) Name

func (a *Add) Name() string

func (*Add) Next

func (a *Add) Next() TagOp

func (*Add) Parse

func (a *Add) Parse(writer *bufio.Writer)

<add layers="conv1,conv2"></add>

type Batch

type Batch struct {
	*Tag
}

func (*Batch) Name

func (b *Batch) Name() string

func (*Batch) Next

func (b *Batch) Next() TagOp

func (*Batch) Parse

func (b *Batch) Parse(writer *bufio.Writer)

<batch batch_size="32" shuffle_size="10000" />

type BatchNormalization

type BatchNormalization struct {
	*HiddenLayer
}

func (*BatchNormalization) Name

func (b *BatchNormalization) Name() string

func (*BatchNormalization) Next

func (b *BatchNormalization) Next() TagOp

func (*BatchNormalization) Parse

func (b *BatchNormalization) Parse(writer *bufio.Writer)

<batch-normalization name="bn"></batch-normalization>

type CSV

type CSV struct {
	*Tag
}

func (*CSV) Name

func (c *CSV) Name() string

func (*CSV) Next

func (c *CSV) Next() TagOp

func (*CSV) Parse

func (c *CSV) Parse(writer *bufio.Writer)

type Concat

type Concat struct {
	*HiddenLayer
}

func (*Concat) Name

func (c *Concat) Name() string

func (*Concat) Next

func (c *Concat) Next() TagOp

func (*Concat) Parse

func (c *Concat) Parse(writer *bufio.Writer)

<concat name="concat" layers="conv1,conv2"></concat>

type Conv2D

type Conv2D struct {
	*HiddenLayer
}

func (*Conv2D) Name

func (c *Conv2D) Name() string

func (*Conv2D) Next

func (c *Conv2D) Next() TagOp

func (*Conv2D) Parse

func (c *Conv2D) Parse(writer *bufio.Writer)

<conv2d filters="32" kernel="3" name="conv2" activation="relu" input="conv1" />

type Conv2DTranspose

type Conv2DTranspose struct {
	*HiddenLayer
}

func (*Conv2DTranspose) Name

func (c *Conv2DTranspose) Name() string

func (*Conv2DTranspose) Next

func (c *Conv2DTranspose) Next() TagOp

func (*Conv2DTranspose) Parse

func (c *Conv2DTranspose) Parse(writer *bufio.Writer)

<conv2d-transpose filters="32" kernel="3" name="conv3" activation="relu" layer="reshape"></conv2d-transpose>

type Data

type Data struct {
	*Tag
}

func (*Data) Name

func (d *Data) Name() string

func (*Data) Next

func (d *Data) Next() TagOp

func (*Data) Parse

func (d *Data) Parse(writer *bufio.Writer)

type Dense

type Dense struct {
	*HiddenLayer
}

func (*Dense) Name

func (d *Dense) Name() string

func (*Dense) Next

func (d *Dense) Next() TagOp

func (*Dense) Parse

func (d *Dense) Parse(writer *bufio.Writer)

<dense units="10" name="dense1"></dense>

type Dropout

type Dropout struct {
	*HiddenLayer
}

func (*Dropout) Name

func (d *Dropout) Name() string

func (*Dropout) Next

func (d *Dropout) Next() TagOp

func (*Dropout) Parse

func (d *Dropout) Parse(writer *bufio.Writer)

<dropout rate="0.2"></dropout>

type Flatten

type Flatten struct {
	*HiddenLayer
}

func (*Flatten) Name

func (f *Flatten) Name() string

func (*Flatten) Next

func (f *Flatten) Next() TagOp

func (*Flatten) Parse

func (f *Flatten) Parse(writer *bufio.Writer)

<flatten name="flatten" layer="concat"></flatten>

type HiddenLayer

type HiddenLayer struct {
	*Tag
}

func (*HiddenLayer) CheckBuildModel

func (h *HiddenLayer) CheckBuildModel(writer *bufio.Writer)

func (*HiddenLayer) Name

func (h *HiddenLayer) Name() string

func (*HiddenLayer) Next

func (h *HiddenLayer) Next() TagOp

type Input

type Input struct {
	*Tag
}

func (*Input) Name

func (i *Input) Name() string

func (*Input) Next

func (i *Input) Next() TagOp

func (*Input) Parse

func (i *Input) Parse(writer *bufio.Writer)

<input shape="h,w,c" name="input" />

type LRelu

type LRelu struct {
	*HiddenLayer
}

func (*LRelu) Name

func (l *LRelu) Name() string

func (*LRelu) Next

func (l *LRelu) Next() TagOp

func (*LRelu) Parse

func (l *LRelu) Parse(writer *bufio.Writer)

<lrelu name="relu" alpha="0.3" layer="dropout"></relu>

type Loss

type Loss struct {
	*Tag
}

func (*Loss) Name

func (l *Loss) Name() string

func (*Loss) Next

func (l *Loss) Next() TagOp

func (*Loss) Parse

func (l *Loss) Parse(writer *bufio.Writer)

type MaxPool

type MaxPool struct {
	*HiddenLayer
}

func (*MaxPool) Name

func (m *MaxPool) Name() string

func (*MaxPool) Next

func (m *MaxPool) Next() TagOp

func (*MaxPool) Parse

func (m *MaxPool) Parse(writer *bufio.Writer)

<maxpool name="pool" size="3" strides="2"></max-pool>

type Metrics

type Metrics struct {
	*Tag
}

func (*Metrics) Name

func (m *Metrics) Name() string

func (*Metrics) Next

func (m *Metrics) Next() TagOp

func (*Metrics) Parse

func (m *Metrics) Parse(writer *bufio.Writer)

<metrics type="sparse_categorical"></metrics>

type Model

type Model struct {
	*Tag
}

func (*Model) Name

func (m *Model) Name() string

func (*Model) Next

func (m *Model) Next() TagOp

func (*Model) Parse

func (m *Model) Parse(writer *bufio.Writer)

type Optimizer

type Optimizer struct {
	*Tag
}

func (*Optimizer) Name

func (o *Optimizer) Name() string

func (*Optimizer) Next

func (o *Optimizer) Next() TagOp

func (*Optimizer) Parse

func (o *Optimizer) Parse(writer *bufio.Writer)

<optimizer type="adam" lr="1e-4"></optimizer>

type Padding

type Padding struct {
	*HiddenLayer
}

func (*Padding) Name

func (p *Padding) Name() string

func (*Padding) Next

func (p *Padding) Next() TagOp

func (*Padding) Parse

func (p *Padding) Parse(writer *bufio.Writer)

<relu name="relu" layer="dropout"></relu>

type Process

type Process struct {
	*Tag
}

func (*Process) Name

func (p *Process) Name() string

func (*Process) Next

func (p *Process) Next() TagOp

func (*Process) Parse

func (p *Process) Parse(writer *bufio.Writer)

type Relu

type Relu struct {
	*HiddenLayer
}

func (*Relu) Name

func (r *Relu) Name() string

func (*Relu) Next

func (r *Relu) Next() TagOp

func (*Relu) Parse

func (r *Relu) Parse(writer *bufio.Writer)

<relu name="relu" layer="dropout"></relu>

type Reshape

type Reshape struct {
	*HiddenLayer
}

func (*Reshape) Name

func (r *Reshape) Name() string

func (*Reshape) Next

func (r *Reshape) Next() TagOp

func (*Reshape) Parse

func (r *Reshape) Parse(writer *bufio.Writer)

<reshape name="reshape" target_shape="128,128,3" layer="flatten" />

type Result

type Result struct {
	*Tag
}

func (*Result) Name

func (r *Result) Name() string

func (*Result) Next

func (r *Result) Next() TagOp

func (*Result) Parse

func (r *Result) Parse(writer *bufio.Writer)

<result save_path="./result" ckpt="%2=0"></result>

type Softmax

type Softmax struct {
	*HiddenLayer
}

func (*Softmax) Name

func (s *Softmax) Name() string

func (*Softmax) Next

func (s *Softmax) Next() TagOp

func (*Softmax) Parse

func (s *Softmax) Parse(writer *bufio.Writer)

softmax name="softmax" layer="conv-transpose"></softmax>

type Tag

type Tag struct {
	Root     *goquery.Selection
	Parent   *goquery.Selection
	Previous *goquery.Selection
	Current  *goquery.Selection

	Ext *TagExt
}

type TagContext

type TagContext struct {
	Prev *Tag
	Cur  *goquery.Selection
}

func CreateTagContext

func CreateTagContext(prev *Tag, cur *goquery.Selection) *TagContext

type TagExt

type TagExt struct {
	HasTestData bool
}

func NewTagExt

func NewTagExt() *TagExt

type TagOp

type TagOp interface {
	Name() string
	Parse(writer *bufio.Writer)
	Next() TagOp
}

func NewActivation

func NewActivation(ctx *TagContext) TagOp

func NewAdd

func NewAdd(ctx *TagContext) TagOp

func NewBatch

func NewBatch(ctx *TagContext) TagOp

func NewBatchNormalization

func NewBatchNormalization(ctx *TagContext) TagOp

func NewCSV

func NewCSV(ctx *TagContext) TagOp

func NewConcat

func NewConcat(ctx *TagContext) TagOp

func NewConv2D

func NewConv2D(ctx *TagContext) TagOp

func NewConv2DTranspose

func NewConv2DTranspose(ctx *TagContext) TagOp

func NewData

func NewData(ctx *TagContext) TagOp

func NewDense

func NewDense(ctx *TagContext) TagOp

func NewDropout

func NewDropout(ctx *TagContext) TagOp

func NewFlatten

func NewFlatten(ctx *TagContext) TagOp

func NewInput

func NewInput(ctx *TagContext) TagOp

func NewLRelu

func NewLRelu(ctx *TagContext) TagOp

func NewLoss

func NewLoss(ctx *TagContext) TagOp

func NewMaxPool

func NewMaxPool(ctx *TagContext) TagOp

func NewMetrics

func NewMetrics(ctx *TagContext) TagOp

func NewModel

func NewModel(ctx *TagContext) TagOp

func NewOptimizer

func NewOptimizer(ctx *TagContext) TagOp

func NewPadding

func NewPadding(ctx *TagContext) TagOp

func NewProcess

func NewProcess(ctx *TagContext) TagOp

func NewRelu

func NewRelu(ctx *TagContext) TagOp

func NewReshape

func NewReshape(ctx *TagContext) TagOp

func NewResult

func NewResult(ctx *TagContext) TagOp

func NewSoftmax

func NewSoftmax(ctx *TagContext) TagOp

func NewTask

func NewTask(dom *goquery.Document) TagOp

func NewTrain

func NewTrain(ctx *TagContext) TagOp

type Task

type Task struct {
	*Tag
}

func (*Task) Name

func (t *Task) Name() string

func (*Task) Next

func (t *Task) Next() TagOp

func (*Task) Parse

func (t *Task) Parse(writer *bufio.Writer)

type Train

type Train struct {
	*Tag
}

func (*Train) Name

func (t *Train) Name() string

func (*Train) Next

func (t *Train) Next() TagOp

func (*Train) Parse

func (t *Train) Parse(writer *bufio.Writer)

Jump to

Keyboard shortcuts

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