Commit a777aedd authored by Harry Moreno's avatar Harry Moreno Committed by Guolin Ke
Browse files

Change variable name test_data > validation_data (#2018)

* 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.
parent b447a7bc
...@@ -74,13 +74,13 @@ The data is stored in a ``Dataset`` object. ...@@ -74,13 +74,13 @@ The data is stored in a ``Dataset`` object.
.. code:: python .. code:: python
test_data = train_data.create_valid('test.svm') validation_data = train_data.create_valid('validation.svm')
or or
.. code:: python .. code:: python
test_data = lgb.Dataset('test.svm', reference=train_data) validation_data = lgb.Dataset('validation.svm', reference=train_data)
In LightGBM, the validation data should be aligned with training data. In LightGBM, the validation data should be aligned with training data.
...@@ -151,7 +151,7 @@ Training a model requires a parameter list and data set: ...@@ -151,7 +151,7 @@ Training a model requires a parameter list and data set:
.. code:: python .. code:: python
num_round = 10 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: After training, the model can be saved:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment