"python-package/vscode:/vscode.git/clone" did not exist on "2b8a2bb84eebf6e2d3b5c5e2f38e951a237a1479"
Commit 7bba0bfc authored by Rahul Phatak's avatar Rahul Phatak Committed by Guolin Ke
Browse files

Fixed typos (#147)

parent 49178def
...@@ -15,7 +15,7 @@ Install ...@@ -15,7 +15,7 @@ Install
python setup.py install python setup.py install
``` ```
To verify your installation, try to `import lightgbm` in Python. * To verify your installation, try to `import lightgbm` in Python.
``` ```
import lightgbm as lgb import lightgbm as lgb
``` ```
...@@ -90,8 +90,8 @@ And you can use `Dataset.set_init_score()` to set initial score, and `Dataset.se ...@@ -90,8 +90,8 @@ And you can use `Dataset.set_init_score()` to set initial score, and `Dataset.se
The `Dataset` object in LightGBM is very memory-efficient, due to it only need to save discrete bins. The `Dataset` object in LightGBM is very memory-efficient, due to it only need to save discrete bins.
However, Numpy/Array/Pandas object is memory cost. If you concern about your memory consumption. You can save memory accroding to following: However, Numpy/Array/Pandas object is memory cost. If you concern about your memory consumption. You can save memory accroding to following:
1. let ```free_raw_data=True```(default is ```True```) when construct Dataset 1. Let ```free_raw_data=True```(default is ```True```) when constructing the ```Dataset```
2. Explicit set ```raw_data=None``` after ```Dataset``` constructed 2. Explicit set ```raw_data=None``` after the ```Dataset``` has been constructed
3. Call ```gc``` 3. Call ```gc```
Setting Parameters Setting Parameters
...@@ -120,7 +120,7 @@ After training, the model can be saved. ...@@ -120,7 +120,7 @@ After training, the model can be saved.
```python ```python
bst.save_model('model.txt') bst.save_model('model.txt')
``` ```
The model can be dumpped to json format The trained model can also be dumped to JSON format
```python ```python
# dump model # dump model
json_model = bst.dump_model() json_model = bst.dump_model()
...@@ -132,7 +132,7 @@ bst = lgb.Booster(model_file="model.txt") #init model ...@@ -132,7 +132,7 @@ bst = lgb.Booster(model_file="model.txt") #init model
CV CV
-- --
Training with 5-fold cv: Training with 5-fold CV:
```python ```python
num_round = 10 num_round = 10
lgb.cv(param, train_data, num_round, nfold=5) lgb.cv(param, train_data, num_round, nfold=5)
......
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