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
8b00b8e1
Commit
8b00b8e1
authored
Feb 20, 2017
by
zhangyafeikimi
Committed by
Guolin Ke
Mar 01, 2017
Browse files
tab to space, improve comments typos (#302)
parent
87392e79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/LightGBM/config.h
include/LightGBM/config.h
+1
-1
src/application/application.cpp
src/application/application.cpp
+1
-1
src/io/config.cpp
src/io/config.cpp
+1
-1
No files found.
include/LightGBM/config.h
View file @
8b00b8e1
...
@@ -134,7 +134,7 @@ public:
...
@@ -134,7 +134,7 @@ public:
double
sigmoid
=
1.0
f
;
double
sigmoid
=
1.0
f
;
double
huber_delta
=
1.0
f
;
double
huber_delta
=
1.0
f
;
double
fair_c
=
1.0
f
;
double
fair_c
=
1.0
f
;
// for ApproximateHessianWithGaussian
// for Approximate
Hessian
With
Gaussian
double
gaussian_eta
=
1.0
f
;
double
gaussian_eta
=
1.0
f
;
double
poisson_max_delta_step
=
0.7
f
;
double
poisson_max_delta_step
=
0.7
f
;
// for lambdarank
// for lambdarank
...
...
src/application/application.cpp
View file @
8b00b8e1
...
@@ -33,7 +33,7 @@ Application::Application(int argc, char** argv) {
...
@@ -33,7 +33,7 @@ Application::Application(int argc, char** argv) {
omp_set_num_threads
(
config_
.
num_threads
);
omp_set_num_threads
(
config_
.
num_threads
);
}
}
if
(
config_
.
io_config
.
data_filename
.
size
()
==
0
)
{
if
(
config_
.
io_config
.
data_filename
.
size
()
==
0
)
{
Log
::
Fatal
(
"No training/prediction data, application quit"
);
Log
::
Fatal
(
"No training/prediction data, application quit"
);
}
}
}
}
...
...
src/io/config.cpp
View file @
8b00b8e1
...
@@ -104,7 +104,7 @@ void OverallConfig::GetMetricType(const std::unordered_map<std::string, std::str
...
@@ -104,7 +104,7 @@ void OverallConfig::GetMetricType(const std::unordered_map<std::string, std::str
std
::
transform
(
value
.
begin
(),
value
.
end
(),
value
.
begin
(),
Common
::
tolower
);
std
::
transform
(
value
.
begin
(),
value
.
end
(),
value
.
begin
(),
Common
::
tolower
);
// split
// split
std
::
vector
<
std
::
string
>
metrics
=
Common
::
Split
(
value
.
c_str
(),
','
);
std
::
vector
<
std
::
string
>
metrics
=
Common
::
Split
(
value
.
c_str
(),
','
);
// remove du
m
plicate
// remove duplicate
std
::
unordered_set
<
std
::
string
>
metric_sets
;
std
::
unordered_set
<
std
::
string
>
metric_sets
;
for
(
auto
&
metric
:
metrics
)
{
for
(
auto
&
metric
:
metrics
)
{
std
::
transform
(
metric
.
begin
(),
metric
.
end
(),
metric
.
begin
(),
Common
::
tolower
);
std
::
transform
(
metric
.
begin
(),
metric
.
end
(),
metric
.
begin
(),
Common
::
tolower
);
...
...
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