lightgbm

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model A trained model

func NewModel

func NewModel() Model

NewModel create a new model object

func (*Model) Load

func (model *Model) Load(modelfilename string) error

Load load the model from json file

func (Model) NumberOfLeaves

func (model Model) NumberOfLeaves() []int

NumberOfLeaves number of leaves for each estimator

func (Model) Predict

func (model Model) Predict(fvals []float64, predLeaf bool) (float64, []uint32, error)

Predict use model to predict result

Jump to

Keyboard shortcuts

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