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
1ccc7d41
Unverified
Commit
1ccc7d41
authored
May 11, 2023
by
James Lamb
Committed by
GitHub
May 10, 2023
Browse files
[ci] [python-package] fix mypy error in Dataset.set_categorical_feature() (#5883)
parent
a2c1dec0
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 @
1ccc7d41
...
@@ -2478,7 +2478,7 @@ class Dataset:
...
@@ -2478,7 +2478,7 @@ class Dataset:
else
:
else
:
if
self
.
categorical_feature
!=
'auto'
:
if
self
.
categorical_feature
!=
'auto'
:
_log_warning
(
'categorical_feature in Dataset is overridden.
\n
'
_log_warning
(
'categorical_feature in Dataset is overridden.
\n
'
f
'New categorical_feature is
{
sorted
(
list
(
categorical_feature
)
)
}
'
)
f
'New categorical_feature is
{
list
(
categorical_feature
)
}
'
)
self
.
categorical_feature
=
categorical_feature
self
.
categorical_feature
=
categorical_feature
return
self
.
_free_handle
()
return
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