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
ba3e1ff2
Commit
ba3e1ff2
authored
Apr 19, 2018
by
Adilet Zhaxybay
Committed by
Guolin Ke
Apr 20, 2018
Browse files
Replaced tabs with spaces (#1330)
parent
1e3b57d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+7
-7
No files found.
include/LightGBM/utils/common.h
View file @
ba3e1ff2
...
@@ -669,13 +669,13 @@ inline static double AvoidInf(double x) {
...
@@ -669,13 +669,13 @@ inline static double AvoidInf(double x) {
}
}
inline
static
float
AvoidInf
(
float
x
)
{
inline
static
float
AvoidInf
(
float
x
)
{
if
(
x
>=
1e38
)
{
if
(
x
>=
1e38
)
{
return
1e38
f
;
return
1e38
f
;
}
else
if
(
x
<=
-
1e38
)
{
}
else
if
(
x
<=
-
1e38
)
{
return
-
1e38
f
;
return
-
1e38
f
;
}
else
{
}
else
{
return
x
;
return
x
;
}
}
}
}
template
<
typename
_Iter
>
inline
template
<
typename
_Iter
>
inline
...
...
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