Skip to content

Commit

Permalink
Change variable name test_data > validation_data
Browse files Browse the repository at this point in the history
* it is confusing to name validation data `test_data` especially as terms like train, validation, test splits are common in ML. Change variable name in python quick start.
  • Loading branch information
morenoh149 committed Feb 16, 2019
1 parent 5256cda commit 07b6047
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Python-Intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ The data is stored in a ``Dataset`` object.

.. code:: python
test_data = train_data.create_valid('test.svm')
validation_data = train_data.create_valid('test.svm')
or

.. code:: python
test_data = lgb.Dataset('test.svm', reference=train_data)
validation_data = lgb.Dataset('test.svm', reference=train_data)
In LightGBM, the validation data should be aligned with training data.

Expand Down Expand Up @@ -151,7 +151,7 @@ Training a model requires a parameter list and data set:
.. code:: python
num_round = 10
bst = lgb.train(param, train_data, num_round, valid_sets=[test_data])
bst = lgb.train(param, train_data, num_round, valid_sets=[validation_data])
After training, the model can be saved:

Expand Down

0 comments on commit 07b6047

Please sign in to comment.