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
7bba0bfc
Commit
7bba0bfc
authored
Dec 30, 2016
by
Rahul Phatak
Committed by
Guolin Ke
Dec 30, 2016
Browse files
Fixed typos (#147)
parent
49178def
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
docs/Python-intro.md
docs/Python-intro.md
+5
-5
No files found.
docs/Python-intro.md
View file @
7bba0bfc
...
...
@@ -15,7 +15,7 @@ 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
```
...
...
@@ -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.
However, Numpy/Array/Pandas object is memory cost. If you concern about your memory consumption. You can save memory accroding to following:
1.
l
et
```free_raw_data=True```
(default is
```True```
) when construct
Dataset
2.
Explicit set
```raw_data=None```
after
```Dataset```
constructed
1.
L
et
```free_raw_data=True```
(default is
```True```
) when construct
ing the
```
Dataset
```
2.
Explicit set
```raw_data=None```
after
the
```Dataset```
has been
constructed
3.
Call
```gc```
Setting Parameters
...
...
@@ -120,7 +120,7 @@ After training, the model can be saved.
```
python
bst
.
save_model
(
'model.txt'
)
```
The model can be dump
p
ed to
json
format
The
trained
model can
also
be dumped to
JSON
format
```
python
# dump model
json_model
=
bst
.
dump_model
()
...
...
@@ -132,7 +132,7 @@ bst = lgb.Booster(model_file="model.txt") #init model
CV
--
Training with 5-fold
cv
:
Training with 5-fold
CV
:
```
python
num_round
=
10
lgb
.
cv
(
param
,
train_data
,
num_round
,
nfold
=
5
)
...
...
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