28 references to WrappedLightGbmInterface
Microsoft.ML.LightGbm (28)
LightGbmTrainerBase.cs (2)
482
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.NetworkInitWithFunctions(
494
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.NetworkFree());
WrappedLightGbmBooster.cs (8)
22
public
WrappedLightGbmInterface
.SafeBoosterHandle Handle { get; private set; }
28
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterCreate(trainset.Handle, param, out var handle));
32
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterAddValidData(Handle, validset.Handle));
38
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterGetEvalCounts(Handle, ref numEval));
48
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterUpdateOneIter(Handle, ref isFinished));
72
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterGetEval(Handle, dataIdx, ref outLen, ptr));
83
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterSaveModelToString(Handle, 0, BestIteration, 0, bufLen, ref size, ptr));
90
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.BoosterSaveModelToString(Handle, 0, BestIteration, 0, bufLen, ref size, ptr));
WrappedLightGbmDataset.cs (17)
16
private
WrappedLightGbmInterface
.SafeDataSetHandle _handle;
18
public
WrappedLightGbmInterface
.SafeDataSetHandle Handle => _handle;
69
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetCreateFromSampledColumn(
95
WrappedLightGbmInterface
.SafeDataSetHandle refHandle = reference?.Handle;
97
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetCreateByReference(refHandle, numTotalRow, out _handle));
124
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetPushRows(_handle, data, numRow, numCol, startRowIdx));
135
WrappedLightGbmInterface
.DatasetPushRowsByCsr(
143
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetGetNumData(_handle, ref res));
150
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetGetNumFeature(_handle, ref res));
159
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetSetField(_handle, "label", (IntPtr)ptr, labels.Length,
160
WrappedLightGbmInterface
.CApiDType.Float32));
181
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetSetField(_handle, "weight", (IntPtr)ptr, weights.Length,
182
WrappedLightGbmInterface
.CApiDType.Float32));
192
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetSetField(_handle, "group", (IntPtr)ptr, groups.Length,
193
WrappedLightGbmInterface
.CApiDType.Int32));
204
LightGbmInterfaceUtils.Check(
WrappedLightGbmInterface
.DatasetSetField(_handle, "init_score", (IntPtr)ptr, initScores.Length,
205
WrappedLightGbmInterface
.CApiDType.Float64));
WrappedLightGbmInterface.cs (1)
240
var charPtr =
WrappedLightGbmInterface
.GetLastError();