starting to develop a c# wrapper for xgboost:
c# implementation of kaggle higgs demo
This commit is contained in:
parent
6c3bc36a25
commit
db46e7a730
@ -15,14 +15,17 @@ namespace xgboost_sharp_wrapper
|
|||||||
|
|
||||||
[DllImport(dll_path+"xgboost_wrapper.dll", CallingConvention=CallingConvention.Cdecl)]
|
[DllImport(dll_path+"xgboost_wrapper.dll", CallingConvention=CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr XGDMatrixCreateFromFile(string fname, int silent);
|
public static extern IntPtr XGDMatrixCreateFromFile(string fname, int silent);
|
||||||
|
public IntPtr SharpXGDMatrixCreateFromFile(string fname, int silent)
|
||||||
public IntPtr SharpXGDMatrixCreateFromFile(string fname, int silent)
|
|
||||||
{
|
{
|
||||||
return XGDMatrixCreateFromFile(fname, silent);
|
return XGDMatrixCreateFromFile(fname, silent);
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport(dll_path + "xgboost_wrapper.dll")]
|
[DllImport(dll_path + "xgboost_wrapper.dll")]
|
||||||
public static extern IntPtr XGBoosterCreate(IntPtr[] dmats, System.UInt32 len);
|
public static extern IntPtr XGBoosterCreate(IntPtr[] dmats, System.UInt32 len);
|
||||||
|
public IntPtr SharpXGBoosterCreate(IntPtr[] dmats, System.UInt32 len)
|
||||||
|
{
|
||||||
|
return XGBoosterCreate(dmats, len);
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport(dll_path + "xgboost_wrapper.dll")]
|
[DllImport(dll_path + "xgboost_wrapper.dll")]
|
||||||
public static extern void XGBoosterUpdateOneIter(IntPtr handle, int iter, IntPtr dtrain);
|
public static extern void XGBoosterUpdateOneIter(IntPtr handle, int iter, IntPtr dtrain);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user