C# 클래스 LightGBMNet.Train.Booster

Wrapper of Booster object of LightGBM.
상속: IDisposable
파일 보기 프로젝트 열기: rca22/LightGBM.Net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Booster System
Eval double
GetDefaultValue double[]
GetHasMissing bool
GetIsCategoricalSplit bool
GetIsDefaultLeft bool
GetModel System
GetModelJSON string
NextDown double
NextUp double
Str2DoubleArray double[]
Str2IntArray int[]
Str2UIntArray uint[]

공개 메소드들

메소드 설명
Booster ( Parameters parameters, LightGBMNet.Train.Dataset trainset, LightGBMNet.Train.Dataset validset = null ) : System
CalcNumPredict ( int numRow, PredictType predType, int numIteration ) : long
Clone ( ) : Booster

Clones the Booster object

Dispose ( ) : void
EvalTrain ( ) : double
EvalValid ( ) : double
FromFile ( string fileName ) : Booster
FromString ( string model ) : Booster
GetFeatureImportance ( int numIteration, ImportanceType importanceType ) : double[]
GetLeafValue ( int treeIdx, int leafIdx ) : double
GetModelString ( ) : string
GetNumPredict ( int dataIdx ) : long
GetPredict ( int dataIdx ) : double[]
MergeWith ( Booster other ) : void
PredictForMat ( PredictType predictType, Array data, int startIteration, int numIteration ) : double[]
PredictForMats ( PredictType predictType, Array data, int startIteration, int numIteration, int numThreads ) : double[]
PredictForMatsMulti ( PredictType predictType, Array data, int startIteration, int numIteration ) : ].double[
Refit ( ].int[ leafPreds ) : void
ResetParameter ( Parameters pms ) : void
ResetTrainingData ( Dataset trainset ) : void
RollbackOneIter ( ) : void
SaveModel ( int startIteration, int numIteration, string fileName ) : void
SetLeafValue ( int treeIdx, int leafIdx, double val ) : void
SetLearningRate ( double learningRate ) : void
ShuffleModels ( ) : void
Update ( ) : bool
UpdateCustom ( Array grad, Array hess ) : bool

비공개 메소드들

메소드 설명
Booster ( IntPtr h, int bestIteration ) : System
Eval ( int dataIdx ) : double
GetDefaultValue ( Array threshold, Array decisionType ) : double[]
GetHasMissing ( uint decisionType ) : bool
GetIsCategoricalSplit ( uint decisionType ) : bool
GetIsDefaultLeft ( uint decisionType ) : bool
GetModel ( ) : System
GetModelJSON ( int startIteration, int numIteration ) : string
NextDown ( double x ) : double
NextUp ( double x ) : double
Str2DoubleArray ( string str, Array delimiters ) : double[]
Str2IntArray ( string str, Array delimiters ) : int[]
Str2UIntArray ( string str, Array delimiters ) : uint[]

메소드 상세

Booster() 공개 메소드

public Booster ( Parameters parameters, LightGBMNet.Train.Dataset trainset, LightGBMNet.Train.Dataset validset = null ) : System
parameters Parameters
trainset LightGBMNet.Train.Dataset
validset LightGBMNet.Train.Dataset
리턴 System

CalcNumPredict() 공개 메소드

public CalcNumPredict ( int numRow, PredictType predType, int numIteration ) : long
numRow int
predType PredictType
numIteration int
리턴 long

Clone() 공개 메소드

Clones the Booster object
public Clone ( ) : Booster
리턴 Booster

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EvalTrain() 공개 메소드

public EvalTrain ( ) : double
리턴 double

EvalValid() 공개 메소드

public EvalValid ( ) : double
리턴 double

FromFile() 공개 정적인 메소드

public static FromFile ( string fileName ) : Booster
fileName string
리턴 Booster

FromString() 공개 정적인 메소드

public static FromString ( string model ) : Booster
model string
리턴 Booster

GetFeatureImportance() 공개 메소드

public GetFeatureImportance ( int numIteration, ImportanceType importanceType ) : double[]
numIteration int
importanceType ImportanceType
리턴 double[]

GetLeafValue() 공개 메소드

public GetLeafValue ( int treeIdx, int leafIdx ) : double
treeIdx int
leafIdx int
리턴 double

GetModelString() 공개 메소드

public GetModelString ( ) : string
리턴 string

GetNumPredict() 공개 메소드

public GetNumPredict ( int dataIdx ) : long
dataIdx int
리턴 long

GetPredict() 공개 메소드

public GetPredict ( int dataIdx ) : double[]
dataIdx int
리턴 double[]

MergeWith() 공개 메소드

public MergeWith ( Booster other ) : void
other Booster
리턴 void

PredictForMat() 공개 메소드

public PredictForMat ( PredictType predictType, Array data, int startIteration, int numIteration ) : double[]
predictType PredictType
data Array
startIteration int
numIteration int
리턴 double[]

PredictForMats() 공개 메소드

public PredictForMats ( PredictType predictType, Array data, int startIteration, int numIteration, int numThreads ) : double[]
predictType PredictType
data Array
startIteration int
numIteration int
numThreads int
리턴 double[]

PredictForMatsMulti() 공개 메소드

public PredictForMatsMulti ( PredictType predictType, Array data, int startIteration, int numIteration ) : ].double[
predictType PredictType
data Array
startIteration int
numIteration int
리턴 ].double[

Refit() 공개 메소드

public Refit ( ].int[ leafPreds ) : void
leafPreds ].int[
리턴 void

ResetParameter() 공개 메소드

public ResetParameter ( Parameters pms ) : void
pms Parameters
리턴 void

ResetTrainingData() 공개 메소드

public ResetTrainingData ( Dataset trainset ) : void
trainset Dataset
리턴 void

RollbackOneIter() 공개 메소드

public RollbackOneIter ( ) : void
리턴 void

SaveModel() 공개 메소드

public SaveModel ( int startIteration, int numIteration, string fileName ) : void
startIteration int
numIteration int
fileName string
리턴 void

SetLeafValue() 공개 메소드

public SetLeafValue ( int treeIdx, int leafIdx, double val ) : void
treeIdx int
leafIdx int
val double
리턴 void

SetLearningRate() 공개 메소드

public SetLearningRate ( double learningRate ) : void
learningRate double
리턴 void

ShuffleModels() 공개 메소드

public ShuffleModels ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : bool
리턴 bool

UpdateCustom() 공개 메소드

public UpdateCustom ( Array grad, Array hess ) : bool
grad Array
hess Array
리턴 bool