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
af82fc95
Unverified
Commit
af82fc95
authored
Feb 24, 2023
by
James Lamb
Committed by
GitHub
Feb 24, 2023
Browse files
[python-package] change types in sklearn.py initializations (#5718)
parent
f975d3fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+3
-3
No files found.
python-package/lightgbm/sklearn.py
View file @
af82fc95
...
...
@@ -525,14 +525,14 @@ class LGBMModel(_LGBMModelBase):
self
.
_Booster
:
Optional
[
Booster
]
=
None
self
.
_evals_result
:
_EvalResultDict
=
{}
self
.
_best_score
:
_LGBM_BoosterBestScoreType
=
{}
self
.
_best_iteration
:
Optional
[
int
]
=
None
self
.
_best_iteration
:
int
=
-
1
self
.
_other_params
:
Dict
[
str
,
Any
]
=
{}
self
.
_objective
=
objective
self
.
class_weight
=
class_weight
self
.
_class_weight
:
Optional
[
Union
[
Dict
,
str
]]
=
None
self
.
_class_map
:
Optional
[
Dict
[
int
,
int
]]
=
None
self
.
_n_features
=
None
self
.
_n_features_in
=
None
self
.
_n_features
:
int
=
-
1
self
.
_n_features_in
:
int
=
-
1
self
.
_classes
=
None
self
.
_n_classes
:
Optional
[
int
]
=
None
self
.
set_params
(
**
kwargs
)
...
...
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