Skip to content

Commit 3d46dd0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 82711a4 commit 3d46dd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

machine_learning/lgbm_classifier.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ def lgbm_classifier(features: np.ndarray, target: np.ndarray) -> LGBMClassifier:
3434
def main() -> None:
3535
"""
3636
Main function to demonstrate LGBM classification on the Iris dataset.
37-
37+
3838
URL for LightGBM documentation:
3939
https://lightgbm.readthedocs.io/en/latest/
4040
"""
4141
# Load the Iris dataset
4242
iris = load_iris()
4343
features, targets = data_handling(iris)
44-
44+
4545
# Split the dataset into training and testing sets
4646
x_train, x_test, y_train, y_test = train_test_split(
4747
features, targets, test_size=0.25, random_state=42
4848
)
49-
49+
5050
# Class names for display
5151
names = iris["target_names"]
5252

@@ -68,5 +68,6 @@ def main() -> None:
6868

6969
if __name__ == "__main__":
7070
import doctest
71+
7172
doctest.testmod(verbose=True)
7273
main()

0 commit comments

Comments
 (0)