roman

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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArabicDecoder

func ArabicDecoder(builder *gocunets.Builder,
	batchsize int32,
	outputchannel int32,
	hiddenoutputchannels []int32,
	learningrates, decay1, decay2 float32,
	x, dx *gocunets.Tensor) (mnet *gocunets.SimpleModuleNetwork)

ArabicDecoder using regular method of increasing size of convolution...by just increasing the outer padding

func ArabicEncoder

func ArabicEncoder(
	builder *gocunets.Builder,
	batchsize int32,
	outputchannel int32,
	hiddenoutputchannels []int32,
	learningrates, decay1, decay2 float32,
	x *gocunets.Tensor) (mnet *gocunets.SimpleModuleNetwork)

ArabicEncoder encodes the arabic

func RomanDecoder

func RomanDecoder(
	builder *gocunets.Builder,
	batchsize int32,
	outputchannel int32,
	hiddenoutputchannels []int32,
	learningrates, decay1, decay2 float32,
	x, dx *gocunets.Tensor) (mnet *gocunets.SimpleModuleNetwork)

RomanDecoder using regular method of increasing size of convolution...by just increasing the outer padding

Types

type Roman

type Roman struct {
	Data   []float32
	Number int
}

Roman is some roman numerals 1 through 9 (I through IX) with the added character N. N == 0

func EncodeSoftmaxPerPixel

func EncodeSoftmaxPerPixel(data []Roman) []Roman

func GetRoman

func GetRoman(folder string) []Roman

GetRoman will get the roman images and convert it to a Roman struct. The function will panic on an error.

func Normalize

func Normalize(data []Roman, avg float32) []Roman

Normalize Normalizes the data

func (*Roman) Copy

func (r *Roman) Copy() (cpy Roman)

Copy makes a copy of Roman

Jump to

Keyboard shortcuts

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