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
de70c7d7
Commit
de70c7d7
authored
Jun 02, 2019
by
Aidan Cooper
Committed by
Nikita Titov
Jun 02, 2019
Browse files
[Python] Fix typo in engine.py (#2211)
Replace "Traninig" with "Training"
parent
520247cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+2
-2
No files found.
python-package/lightgbm/engine.py
View file @
de70c7d7
...
...
@@ -188,7 +188,7 @@ def train(params, train_set, num_boost_round=100,
train_data_name
=
valid_names
[
i
]
continue
if
not
isinstance
(
valid_data
,
Dataset
):
raise
TypeError
(
"Tranin
i
g only accepts Dataset object"
)
raise
TypeError
(
"Tra
i
ning only accepts Dataset object"
)
reduced_valid_sets
.
append
(
valid_data
.
_update_params
(
params
).
set_reference
(
train_set
))
if
valid_names
is
not
None
and
len
(
valid_names
)
>
i
:
name_valid_sets
.
append
(
valid_names
[
i
])
...
...
@@ -488,7 +488,7 @@ def cv(params, train_set, num_boost_round=100,
...}.
"""
if
not
isinstance
(
train_set
,
Dataset
):
raise
TypeError
(
"Tranin
i
g only accepts Dataset object"
)
raise
TypeError
(
"Tra
i
ning only accepts Dataset object"
)
params
=
copy
.
deepcopy
(
params
)
if
fobj
is
not
None
:
...
...
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