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
f6b25ac9
Commit
f6b25ac9
authored
Apr 17, 2017
by
Guolin Ke
Browse files
fix test.
parent
05f4a26a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/python_package_test/test_engine.py
tests/python_package_test/test_engine.py
+2
-2
No files found.
tests/python_package_test/test_engine.py
View file @
f6b25ac9
...
...
@@ -32,8 +32,8 @@ class template(object):
@
staticmethod
def
test_template
(
params
=
{
'objective'
:
'regression'
,
'metric'
:
'l2'
},
X_y
=
load_boston
(
True
),
feval
=
mean_squared_error
,
num_round
=
20
0
,
init_model
=
None
,
custom_eval
=
None
,
early_stopping_rounds
=
5
,
num_round
=
5
0
,
init_model
=
None
,
custom_eval
=
None
,
early_stopping_rounds
=
2
,
return_data
=
False
,
return_model
=
False
):
params
[
'verbose'
],
params
[
'seed'
]
=
-
1
,
42
X_train
,
X_test
,
y_train
,
y_test
=
train_test_split
(
*
X_y
,
test_size
=
0.1
,
random_state
=
42
)
...
...
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