Documentation ¶
Index ¶
- Variables
- type XGBooster
- func (booster *XGBooster) DeleteParam(name string) error
- func (booster *XGBooster) LoadModel(filePath string) error
- func (booster *XGBooster) Predict(mat *XGDMatrix, optionMask int, ntreeLimit uint) ([]float32, error)
- func (booster *XGBooster) SaveModel(filePath string) error
- func (booster *XGBooster) SetParam(name string, value string) error
- func (booster *XGBooster) UpdateOneIter(iter int, mat *XGDMatrix) error
- type XGDMatrix
- func (matrix *XGDMatrix) GetFloatInfo(field string) ([]float32, error)
- func (matrix *XGDMatrix) GetUIntInfo(field string) ([]uint32, error)
- func (matrix *XGDMatrix) NumCol() (uint32, error)
- func (matrix *XGDMatrix) NumRow() (uint32, error)
- func (matrix *XGDMatrix) SetFloatInfo(field string, values []float32) error
- func (matrix *XGDMatrix) SetGroup(group ...uint32) error
- func (matrix *XGDMatrix) SetUIntInfo(field string, values []uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSuccessful = errors.New("not succesfull")
ErrNotSuccessful returned when an action fails
Functions ¶
This section is empty.
Types ¶
type XGBooster ¶
type XGBooster struct {
// contains filtered or unexported fields
}
XGBooster gradient booster
func XGBoosterCreate ¶
XGBoosterCreate creates a new booster for a given matrixes
func (*XGBooster) DeleteParam ¶
DeleteParam set parameters
func (*XGBooster) Predict ¶
func (booster *XGBooster) Predict(mat *XGDMatrix, optionMask int, ntreeLimit uint) ([]float32, error)
Predict make prediction based on dmat
type XGDMatrix ¶
type XGDMatrix struct {
// contains filtered or unexported fields
}
XGDMatrix matrix
func XGDMatrixCreateFromMat ¶
func XGDMatrixCreateFromMat(data []float32, nrows int, ncols int, missing float32) (*XGDMatrix, error)
XGDMatrixCreateFromMat create matrix content from dense matrix
func (*XGDMatrix) GetFloatInfo ¶
GetFloatInfo get float info vector from matrix
func (*XGDMatrix) GetUIntInfo ¶
GetUIntInfo get uint32 info vector from matrix
func (*XGDMatrix) SetFloatInfo ¶
SetFloatInfo set float vector to a content in info
Click to show internal directories.
Click to hide internal directories.