tensorflow

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CategorizeAttributes added in v0.4.1

func CategorizeAttributes(trainStmt *ir.TrainStmt) (trainParams, validateParams, modelParams map[string]interface{})

CategorizeAttributes returns attributes like train.*, validation.* and model.* to separated maps.

func DeriveFeatureColumnCodeAndFieldDescs added in v0.4.1

func DeriveFeatureColumnCodeAndFieldDescs(trainStmt *ir.TrainStmt) (featureColumnsCode []string, fieldDescs map[string][]*ir.FieldDesc, err error)

DeriveFeatureColumnCodeAndFieldDescs generates tensorflow feature column code and field descs from IR.

func DocGenInMarkdown

func DocGenInMarkdown() string

DocGenInMarkdown generates the doc of the XGBoost in Markdown format.

func Evaluate

func Evaluate(stmt *ir.EvaluateStmt, session *pb.Session) (string, error)

Evaluate generates a Python program to evaluate a trained model.

func Explain

func Explain(stmt *ir.ExplainStmt, session *pb.Session) (string, error)

Explain generates a Python program to explain a trained model.

func InitializeAttributes

func InitializeAttributes(trainStmt *ir.TrainStmt) error

InitializeAttributes initializes the attributes of TensorFlow and does type checking for them

func IsPAI

func IsPAI() bool

IsPAI tells if we are using PAI platform currently

func Pred

func Pred(predStmt *ir.PredictStmt, session *pb.Session) (string, error)

Pred generates a Python program for predict using a TensorFlow model.

func Train

func Train(trainStmt *ir.TrainStmt, session *pb.Session) (string, error)

Train generates a Python program for train a TensorFlow model.

Types

This section is empty.

Jump to

Keyboard shortcuts

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