model

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluateConfig

type EvaluateConfig struct {
	BatchSize int
	PreFetch  int
	Metrics   []metric.Metric
	Callbacks []callback.Callback
	Verbose   int
}

type FitConfig

type FitConfig struct {
	Epochs     int
	BatchSize  int
	Validation bool
	PreFetch   int
	Metrics    []metric.Metric
	Callbacks  []callback.Callback
	Verbose    int
}

type TfModel

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

func LoadModel

func LoadModel(
	errorHandler *cberrors.ErrorsContainer,
	logger *cblog.Logger,
	dir string,
) (*TfModel, error)

func NewSequentialModel

func NewSequentialModel(
	logger *cblog.Logger,
	errorHandler *cberrors.ErrorsContainer,
	layers ...layer.Layer,
) *TfModel

func (*TfModel) CompileAndLoad

func (m *TfModel) CompileAndLoad(batchSize int, pythonPath string, createModelFunc ...func(tempDir, tempPythonGenerationFile string) error) error

func (*TfModel) Evaluate

func (m *TfModel) Evaluate(
	evaluateSignature string,
	mode data.GeneratorMode,
	dataset data.Dataset,
	config EvaluateConfig,
)

func (*TfModel) Fit

func (m *TfModel) Fit(
	trainSignature string,
	valSignature string,
	dataset data.Dataset,
	config FitConfig,
)

func (*TfModel) Save

func (m *TfModel) Save(dir string) error

Jump to

Keyboard shortcuts

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