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
ebb07f01
"vscode:/vscode.git/clone" did not exist on "86530988a08797d77f9cbafcfc7809d9179c2610"
Commit
ebb07f01
authored
Mar 13, 2018
by
Alexandre Maia
Committed by
Guolin Ke
Mar 14, 2018
Browse files
[typo] s/overrided/overridden (#1263)
parent
c298017a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/LightGBM/config.h
include/LightGBM/config.h
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+3
-3
No files found.
include/LightGBM/config.h
View file @
ebb07f01
...
@@ -492,7 +492,7 @@ struct ParameterAlias {
...
@@ -492,7 +492,7 @@ struct ParameterAlias {
alias
->
second
.
c_str
(),
alias_set
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
(),
alias
->
second
.
c_str
(),
alias_set
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
(),
pair
.
first
.
c_str
(),
pair
.
second
.
c_str
(),
alias
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
());
pair
.
first
.
c_str
(),
pair
.
second
.
c_str
(),
alias
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
());
}
else
{
}
else
{
Log
::
Warning
(
"%s is set with %s=%s, will be overrid
e
d by %s=%s. Current value: %s=%s."
,
Log
::
Warning
(
"%s is set with %s=%s, will be overridd
en
by %s=%s. Current value: %s=%s."
,
alias
->
second
.
c_str
(),
alias_set
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
(),
alias
->
second
.
c_str
(),
alias_set
->
second
.
c_str
(),
params
->
at
(
alias_set
->
second
).
c_str
(),
pair
.
first
.
c_str
(),
pair
.
second
.
c_str
(),
alias
->
second
.
c_str
(),
pair
.
second
.
c_str
());
pair
.
first
.
c_str
(),
pair
.
second
.
c_str
(),
alias
->
second
.
c_str
(),
pair
.
second
.
c_str
());
tmp_map
[
alias
->
second
]
=
pair
.
first
;
tmp_map
[
alias
->
second
]
=
pair
.
first
;
...
...
python-package/lightgbm/basic.py
View file @
ebb07f01
...
@@ -678,7 +678,7 @@ class Dataset(object):
...
@@ -678,7 +678,7 @@ class Dataset(object):
.
format
(
type
(
name
).
__name__
,
name
))
.
format
(
type
(
name
).
__name__
,
name
))
if
categorical_indices
:
if
categorical_indices
:
if
"categorical_feature"
in
params
or
"categorical_column"
in
params
:
if
"categorical_feature"
in
params
or
"categorical_column"
in
params
:
warnings
.
warn
(
'categorical_feature in param dict is overrid
e
d.'
)
warnings
.
warn
(
'categorical_feature in param dict is overridd
en
.'
)
params
.
pop
(
"categorical_feature"
,
None
)
params
.
pop
(
"categorical_feature"
,
None
)
params
.
pop
(
"categorical_column"
,
None
)
params
.
pop
(
"categorical_column"
,
None
)
params
[
'categorical_column'
]
=
sorted
(
categorical_indices
)
params
[
'categorical_column'
]
=
sorted
(
categorical_indices
)
...
@@ -726,7 +726,7 @@ class Dataset(object):
...
@@ -726,7 +726,7 @@ class Dataset(object):
if
init_score
is
not
None
:
if
init_score
is
not
None
:
self
.
set_init_score
(
init_score
)
self
.
set_init_score
(
init_score
)
if
self
.
predictor
is
not
None
:
if
self
.
predictor
is
not
None
:
warnings
.
warn
(
"The prediction of init_model will be overrid
e
d by init_score."
)
warnings
.
warn
(
"The prediction of init_model will be overridd
en
by init_score."
)
elif
isinstance
(
self
.
predictor
,
_InnerPredictor
):
elif
isinstance
(
self
.
predictor
,
_InnerPredictor
):
init_score
=
self
.
predictor
.
predict
(
data
,
init_score
=
self
.
predictor
.
predict
(
data
,
raw_score
=
True
,
raw_score
=
True
,
...
@@ -1035,7 +1035,7 @@ class Dataset(object):
...
@@ -1035,7 +1035,7 @@ class Dataset(object):
elif
categorical_feature
==
'auto'
:
elif
categorical_feature
==
'auto'
:
warnings
.
warn
(
'Using categorical_feature in Dataset.'
)
warnings
.
warn
(
'Using categorical_feature in Dataset.'
)
else
:
else
:
warnings
.
warn
(
'categorical_feature in Dataset is overrid
e
d. New categorical_feature is {}'
.
format
(
sorted
(
list
(
categorical_feature
))))
warnings
.
warn
(
'categorical_feature in Dataset is overridd
en
. New categorical_feature is {}'
.
format
(
sorted
(
list
(
categorical_feature
))))
self
.
categorical_feature
=
categorical_feature
self
.
categorical_feature
=
categorical_feature
self
.
_free_handle
()
self
.
_free_handle
()
else
:
else
:
...
...
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