Beispiel #1
0
 public static extern int DatasetCreateFromSampledColumn(IntPtr sampleValuePerColumn,
                                                         IntPtr sampleIndicesPerColumn,
                                                         int numCol,
                                                         int[] sampleNonZeroCntPerColumn,
                                                         int numSampleRow,
                                                         int numTotalRow,
                                                         [MarshalAs(UnmanagedType.LPStr)] string parameters,
                                                         out SafeDataSetHandle ret);
Beispiel #2
0
 public static int DatasetPushRows(SafeDataSetHandle dataset,
                                   float[] data,
                                   int numRow,
                                   int numCol,
                                   int startRowIdx)
 {
     return(DatasetPushRows(dataset, data, CApiDType.Float32, numRow, numCol, startRowIdx));
 }
Beispiel #3
0
 private static extern int DatasetPushRowsByCsr(SafeDataSetHandle dataset,
                                                int[] indPtr,
                                                CApiDType indPtrType,
                                                int[] indices,
                                                float[] data,
                                                CApiDType dataType,
                                                long nIndPtr,
                                                long numElem,
                                                long numCol,
                                                long startRowIdx);
Beispiel #4
0
 public static int DatasetPushRowsByCsr(SafeDataSetHandle dataset,
                                        int[] indPtr,
                                        int[] indices,
                                        float[] data,
                                        long nIndPtr,
                                        long numElem,
                                        long numCol,
                                        long startRowIdx)
 {
     return(DatasetPushRowsByCsr(dataset,
                                 indPtr, CApiDType.Int32,
                                 indices, data, CApiDType.Float32,
                                 nIndPtr, numElem, numCol, startRowIdx));
 }
Beispiel #5
0
 private static extern int DatasetPushRows(SafeDataSetHandle dataset,
                                           float[] data,
                                           CApiDType dataType,
                                           int numRow,
                                           int numCol,
                                           int startRowIdx);
Beispiel #6
0
 public static extern int DatasetCreateByReference(SafeDataSetHandle reference,
                                                   long numRow,
                                                   out SafeDataSetHandle ret);
Beispiel #7
0
 public static extern int BoosterAddValidData(SafeBoosterHandle handle, SafeDataSetHandle validset);
Beispiel #8
0
 public static extern int BoosterCreate(SafeDataSetHandle trainset,
                                        [MarshalAs(UnmanagedType.LPStr)] string param,
                                        out SafeBoosterHandle res);
Beispiel #9
0
 public static extern int DatasetGetNumFeature(SafeDataSetHandle handle, ref int res);
Beispiel #10
0
 public static extern int DatasetSetField(
     SafeDataSetHandle handle,
     [MarshalAs(UnmanagedType.LPStr)] string field,
     IntPtr array,
     int len,
     CApiDType type);