-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test out old sparse dataset create method
- Loading branch information
1 parent
9e9ff1a
commit 90e5f0a
Showing
6 changed files
with
382 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (C) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in project root for information. | ||
|
||
package com.microsoft.ml.lightgbm | ||
|
||
/** Temporary class that accepts int32_t arrays instead of void pointer arguments. | ||
* TODO: Need to generate a new lightGBM jar with utility to convert int array | ||
* to void pointer and then remove this file. | ||
*/ | ||
object CSRUtils { | ||
// scalastyle:off parameter.number | ||
def LGBM_DatasetCreateFromCSR(var0: SWIGTYPE_p_int, var1: Int, var2: SWIGTYPE_p_int, var3: SWIGTYPE_p_void, | ||
var4: Int, var5: Int, var6: Int, | ||
var7: Int, var8: String, var9: SWIGTYPE_p_void, | ||
var10: SWIGTYPE_p_p_void): Int = { | ||
lightgbmlibJNI.LGBM_DatasetCreateFromCSR(SWIGTYPE_p_int.getCPtr(var0), var1, SWIGTYPE_p_int.getCPtr(var2), | ||
SWIGTYPE_p_void.getCPtr(var3), var4, var5, var6, | ||
var7, var8, SWIGTYPE_p_void.getCPtr(var9), SWIGTYPE_p_p_void.getCPtr(var10)) | ||
} | ||
// scalastyle:on parameter.number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.