Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
e09e4caa
Commit
e09e4caa
authored
May 12, 2019
by
James Lamb
Committed by
Laurae
May 12, 2019
Browse files
fixed minor issues with R package (#2167)
parent
1a1c2fd7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
21 deletions
+2
-21
CMakeLists.txt
CMakeLists.txt
+1
-1
R-package/demo/categorical_features_prepare.R
R-package/demo/categorical_features_prepare.R
+1
-1
R-package/src/R_init.c
R-package/src/R_init.c
+0
-12
R-package/src/R_init.h
R-package/src/R_init.h
+0
-7
No files found.
CMakeLists.txt
View file @
e09e4caa
...
@@ -11,7 +11,7 @@ OPTION(USE_OPENMP "Enable OpenMP" ON)
...
@@ -11,7 +11,7 @@ OPTION(USE_OPENMP "Enable OpenMP" ON)
OPTION
(
USE_GPU
"Enable GPU-accelerated training"
OFF
)
OPTION
(
USE_GPU
"Enable GPU-accelerated training"
OFF
)
OPTION
(
USE_SWIG
"Enable SWIG to generate Java API"
OFF
)
OPTION
(
USE_SWIG
"Enable SWIG to generate Java API"
OFF
)
OPTION
(
USE_HDFS
"Enable HDFS support (EXPERIMENTAL)"
OFF
)
OPTION
(
USE_HDFS
"Enable HDFS support (EXPERIMENTAL)"
OFF
)
OPTION
(
USE_R35
"Set to ON if your R version is not
small
er than 3.5"
OFF
)
OPTION
(
USE_R35
"Set to ON if your R version is not
earli
er than 3.5"
OFF
)
if
(
APPLE
)
if
(
APPLE
)
OPTION
(
APPLE_OUTPUT_DYLIB
"Output dylib shared library"
OFF
)
OPTION
(
APPLE_OUTPUT_DYLIB
"Output dylib shared library"
OFF
)
...
...
R-package/demo/categorical_features_prepare.R
View file @
e09e4caa
...
@@ -31,7 +31,7 @@ str(bank)
...
@@ -31,7 +31,7 @@ str(bank)
# For this task, we use lgb.prepare
# For this task, we use lgb.prepare
# The function transforms the data into a fittable data
# The function transforms the data into a fittable data
#
#
# Classes
‘
data.table
’
and 'data.frame': 4521 obs. of 17 variables:
# Classes
'
data.table
'
and 'data.frame': 4521 obs. of 17 variables:
# $ age : int 30 33 35 30 59 35 36 39 41 43 ...
# $ age : int 30 33 35 30 59 35 36 39 41 43 ...
# $ job : num 11 8 5 5 2 5 7 10 3 8 ...
# $ job : num 11 8 5 5 2 5 7 10 3 8 ...
# $ marital : num 2 2 3 2 2 3 2 2 2 2 ...
# $ marital : num 2 2 3 2 2 3 2 2 2 2 ...
...
...
R-package/src/R_init.c
deleted
100644 → 0
View file @
1a1c2fd7
// Register Dynamic Symbols
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
#include "R_init.h"
void
R_init_lightgbm
(
DllInfo
*
info
)
{
R_registerRoutines
(
info
,
NULL
,
NULL
,
NULL
,
NULL
);
R_useDynamicSymbols
(
info
,
TRUE
);
}
R-package/src/R_init.h
deleted
100644 → 0
View file @
1a1c2fd7
// Register Dynamic Symbols
#ifndef R_INIT_LIGHTGBM_H
#define R_INIT_LIGHTGBM_H
void
R_init_lightgbm
(
DllInfo
*
info
);
#endif // R_INIT_LIGHTGBM_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment