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
b36926d8
Commit
b36926d8
authored
Dec 08, 2019
by
duckladydinh
Committed by
Nikita Titov
Dec 08, 2019
Browse files
[python] Variable Typo: redictor -> predictor (#2622)
I believe that this should be a typo, right?
parent
bdaac32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
b36926d8
...
...
@@ -803,7 +803,7 @@ class Dataset(object):
assert
num_data
==
len
(
used_indices
)
for
i
in
range_
(
len
(
used_indices
)):
for
j
in
range_
(
predictor
.
num_class
):
sub_init_score
[
i
*
redictor
.
num_class
+
j
]
=
init_score
[
used_indices
[
i
]
*
redictor
.
num_class
+
j
]
sub_init_score
[
i
*
p
redictor
.
num_class
+
j
]
=
init_score
[
used_indices
[
i
]
*
p
redictor
.
num_class
+
j
]
init_score
=
sub_init_score
if
predictor
.
num_class
>
1
:
# need to regroup init_score
...
...
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