xgboost

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistTrain

func DistTrain(trainStmt *ir.TrainStmt, session *pb.Session, nworkers int, ossURIToSave, ossURIToLoad string) (string, error)

DistTrain generates a Python program for distributed train a XGBoost model. TODO(weiguoz): make DistTrain to be an implementation of the interface.

func DocGenInMarkdown

func DocGenInMarkdown() string

DocGenInMarkdown generates the doc of the XGBoost in Markdown format.

func Evaluate

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

Evaluate generates a Python program for evaluating a xgboost model.

func Explain

func Explain(explainStmt *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 XGBoost and does type checking for them

func Pred

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

Pred generates a Python program for predict a xgboost model.

func Train

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

Train generates a Python program for train a XgBoost model.

Types

type FieldMeta

type FieldMeta struct {
	FeatureName string `json:"feature_name"`
	DType       string `json:"dtype"`
	Delimiter   string `json:"delimiter"`
	Format      string `json:"format"`
	Shap        []int  `json:"shape"`
	IsSparse    bool   `json:"is_sparse"`
}

FieldMeta delicates Field Meta with Json format which used in code generator

Jump to

Keyboard shortcuts

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