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
53bae396
Commit
53bae396
authored
Dec 05, 2016
by
Guolin Ke
Browse files
fix bug in check same object for python tuple
parent
1be76baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+1
-1
No files found.
python-package/lightgbm/engine.py
View file @
53bae396
...
@@ -152,7 +152,7 @@ def train(params, train_data, num_boost_round=100,
...
@@ -152,7 +152,7 @@ def train(params, train_data, num_boost_round=100,
for
i
,
valid_data
in
enumerate
(
valid_datas
):
for
i
,
valid_data
in
enumerate
(
valid_datas
):
other_fields
=
None
if
valid_fields
is
None
else
valid_fields
[
i
]
other_fields
=
None
if
valid_fields
is
None
else
valid_fields
[
i
]
"""reduce cost for prediction training data"""
"""reduce cost for prediction training data"""
if
valid_data
is
train_data
:
if
valid_data
[
0
]
is
train_data
[
0
]
and
valid_data
[
1
]
is
train_data
[
1
]
:
is_valid_contain_train
=
True
is_valid_contain_train
=
True
if
valid_names
is
not
None
:
if
valid_names
is
not
None
:
train_data_name
=
valid_names
[
i
]
train_data_name
=
valid_names
[
i
]
...
...
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