generated

package
v0.0.0-...-7ce53e0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FontsArial = []string{
	"/System/Library/Fonts/Supplemental/Arial Black.ttf",
	"/System/Library/Fonts/Supplemental/Arial Bold Italic.ttf",
	"/System/Library/Fonts/Supplemental/Arial Bold.ttf",
	"/System/Library/Fonts/Supplemental/Arial Italic.ttf",
	"/System/Library/Fonts/Supplemental/Arial Narrow Bold Italic.ttf",
	"/System/Library/Fonts/Supplemental/Arial Narrow Bold.ttf",
	"/System/Library/Fonts/Supplemental/Arial Narrow Italic.ttf",
	"/System/Library/Fonts/Supplemental/Arial Narrow.ttf",
	"/System/Library/Fonts/Supplemental/Arial Rounded Bold.ttf",
	"/System/Library/Fonts/Supplemental/Arial Unicode.ttf",
	"/System/Library/Fonts/Supplemental/Arial.ttf",
}
View Source
var FontsMono = []string{
	"./dataset/fonts/freefont-20100919/FreeMono.ttf",
	"./dataset/fonts/freefont-20100919/FreeMonoBold.ttf",
	"./dataset/fonts/freefont-20100919/FreeMonoBoldOblique.ttf",
	"./dataset/fonts/freefont-20100919/FreeMonoOblique.ttf",
}
View Source
var FontsSans = []string{
	"./dataset/fonts/freefont-20100919/FreeSans.ttf",
	"./dataset/fonts/freefont-20100919/FreeSansBold.ttf",
	"./dataset/fonts/freefont-20100919/FreeSansBoldOblique.ttf",
	"./dataset/fonts/freefont-20100919/FreeSansOblique.ttf",
}
View Source
var FontsSerif = []string{
	"./dataset/fonts/freefont-20100919/FreeSerif.ttf",
	"./dataset/fonts/freefont-20100919/FreeSerifBold.ttf",
	"./dataset/fonts/freefont-20100919/FreeSerifBoldItalic.ttf",
	"./dataset/fonts/freefont-20100919/FreeSerifItalic.ttf",
}
View Source
var FontsSupplemental = []string{}/* 162 elements not displayed */
View Source
var FontsTimes = []string{
	"/System/Library/Fonts/Supplemental/Times New Roman Bold Italic.ttf",
	"/System/Library/Fonts/Supplemental/Times New Roman Bold.ttf",
	"/System/Library/Fonts/Supplemental/Times New Roman Italic.ttf",
	"/System/Library/Fonts/Supplemental/Times New Roman.ttf",
}
View Source
var FontsVerdana = []string{
	"/System/Library/Fonts/Supplemental/Verdana Bold Italic.ttf",
	"/System/Library/Fonts/Supplemental/Verdana Bold.ttf",
	"/System/Library/Fonts/Supplemental/Verdana Italic.ttf",
	"/System/Library/Fonts/Supplemental/Verdana.ttf",
}

Functions

func NewGeneratedDataset

func NewGeneratedDataset(fonts []string, epochs, size int, noise, rndsize bool) dataset.Dataset

NewGeneratedDataset wil create a new GeneratedDataset instance.

Types

type GeneratedDataset

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

GeneratedDataset is the object that describes the generated fonts dataset.

func (*GeneratedDataset) Epochs

func (fd *GeneratedDataset) Epochs() int

Epochs returns the number of epochs that should run during training.

func (*GeneratedDataset) TestRatio

func (fd *GeneratedDataset) TestRatio() float64

TestRatio returns how much can of the dataset can be used for validating the network.

func (*GeneratedDataset) XY

XY will create both input and output data for various variations of fonts and numbers.

Jump to

Keyboard shortcuts

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