30 references to LightGbmInterfaceUtils
Microsoft.ML.LightGbm (30)
LightGbmArguments.cs (1)
187
var name = NameMapping.ContainsKey(field.Name) ? NameMapping[field.Name] :
LightGbmInterfaceUtils
.GetOptionName(field.Name);
LightGbmBinaryTrainer.cs (1)
256
var innerArgs =
LightGbmInterfaceUtils
.JoinParameters(base.GbmOptions);
LightGbmMulticlassTrainer.cs (1)
218
var innerArgs =
LightGbmInterfaceUtils
.JoinParameters(GbmOptions);
LightGbmRankingTrainer.cs (1)
284
var innerArgs =
LightGbmInterfaceUtils
.JoinParameters(GbmOptions);
LightGbmRegressionTrainer.cs (1)
220
var innerArgs =
LightGbmInterfaceUtils
.JoinParameters(GbmOptions);
LightGbmTrainerBase.cs (4)
71
return
LightGbmInterfaceUtils
.GetOptionName(name);
482
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.NetworkInitWithFunctions(
494
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.NetworkFree());
657
string param =
LightGbmInterfaceUtils
.JoinParameters(GbmOptions);
WrappedLightGbmBooster.cs (9)
27
var param =
LightGbmInterfaceUtils
.JoinParameters(parameters);
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));
95
return
LightGbmInterfaceUtils
.GetString((IntPtr)ptr);
WrappedLightGbmDataset.cs (10)
69
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetCreateFromSampledColumn(
97
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetCreateByReference(refHandle, numTotalRow, out _handle));
124
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetPushRows(_handle, data, numRow, numCol, startRowIdx));
134
LightGbmInterfaceUtils
.Check(
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,
181
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetSetField(_handle, "weight", (IntPtr)ptr, weights.Length,
192
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetSetField(_handle, "group", (IntPtr)ptr, groups.Length,
204
LightGbmInterfaceUtils
.Check(WrappedLightGbmInterface.DatasetSetField(_handle, "init_score", (IntPtr)ptr, initScores.Length,
WrappedLightGbmInterface.cs (2)
79
LightGbmInterfaceUtils
.Check(DatasetFree(handle));
173
LightGbmInterfaceUtils
.Check(BoosterFree(handle));