tensorflow

package
v0.0.0-...-8a61e0c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

This package provides an abstraction to tensorflow training which is carried out in python rather than go.

Index

Constants

View Source
const CONFIG_FILE string = "config.in"
View Source
const OUTPUT_FILE string = "output.out"
View Source
const WEIGHTS_FILE string = "weights.in"

Variables

This section is empty.

Functions

func EnableDebug

func EnableDebug(b bool)

func NewTensorflowMLF

func NewTensorflowMLF() training.MLFramework

Types

type TensorflowError

type TensorflowError struct {
	Err          error
	Description  string
	PythonOutput string
}

func (*TensorflowError) Error

func (e *TensorflowError) Error() string

type TensorflowFramework

type TensorflowFramework struct {
}

func (*TensorflowFramework) Aggregate

func (t *TensorflowFramework) Aggregate(updates []string) (aggregatedWeights string, err error)

func (*TensorflowFramework) Evaluate

func (t *TensorflowFramework) Evaluate(configuration string, weights string) (results training.EvaluationResults, err error)

func (*TensorflowFramework) Train

func (t *TensorflowFramework) Train(configuration string, weights string) (updatedWeights string, err error)

Trains the supplied model with local data and returns the updated weights

Jump to

Keyboard shortcuts

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