xloss

package
v0.0.0-...-98db5b7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: CC-BY-4.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ops

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

Ops contains the operation to do the loss function

func Stage

func Stage(handle *xtra.Handle, mode xtra.XLossMode, managed bool) (*Ops, error)

Stage stages the loss operation

func (*Ops) Error

func (o *Ops) Error(handle *xtra.Handle, dx, y, dy *tensor.Volume, alpha, beta float64) error

Error calculates the MSE error dx will get the errors y is the target values dy is the network output

func (*Ops) Loss

func (o *Ops) Loss() float32

Loss returns the loss function found. Should be called after the error is found

Jump to

Keyboard shortcuts

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