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
8ef874bd
".github/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "ee30b8aabdd17bd52275e19f0a5c97be033d523c"
Unverified
Commit
8ef874bd
authored
Jan 28, 2021
by
Nikita Titov
Committed by
GitHub
Jan 27, 2021
Browse files
fix docs for machine_list_filename param (#3863)
parent
b4b1b75a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
docs/Parameters.rst
docs/Parameters.rst
+2
-0
include/LightGBM/config.h
include/LightGBM/config.h
+1
-0
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+0
-4
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+1
-2
No files found.
docs/Parameters.rst
View file @
8ef874bd
...
@@ -1149,6 +1149,8 @@ Network Parameters
...
@@ -1149,6 +1149,8 @@ Network Parameters
- each line contains one IP and one port for one machine. The format is ``ip port`` (space as a separator)
- each line contains one IP and one port for one machine. The format is ``ip port`` (space as a separator)
- **Note**: can be used only in CLI version
- ``machines`` :raw-html:`<a id="machines" title="Permalink to this parameter" href="#machines">🔗︎</a>`, default = ``""``, type = string, aliases: ``workers``, ``nodes``
- ``machines`` :raw-html:`<a id="machines" title="Permalink to this parameter" href="#machines">🔗︎</a>`, default = ``""``, type = string, aliases: ``workers``, ``nodes``
- list of machines in the following format: ``ip1:port1,ip2:port2``
- list of machines in the following format: ``ip1:port1,ip2:port2``
...
...
include/LightGBM/config.h
View file @
8ef874bd
...
@@ -976,6 +976,7 @@ struct Config {
...
@@ -976,6 +976,7 @@ struct Config {
// alias = machine_list_file, machine_list, mlist
// alias = machine_list_file, machine_list, mlist
// desc = path of file that lists machines for this parallel learning application
// desc = path of file that lists machines for this parallel learning application
// desc = each line contains one IP and one port for one machine. The format is ``ip port`` (space as a separator)
// desc = each line contains one IP and one port for one machine. The format is ``ip port`` (space as a separator)
// desc = **Note**: can be used only in CLI version
std
::
string
machine_list_filename
=
""
;
std
::
string
machine_list_filename
=
""
;
// alias = workers, nodes
// alias = workers, nodes
...
...
python-package/lightgbm/basic.py
View file @
8ef874bd
...
@@ -299,10 +299,6 @@ class _ConfigAliases:
...
@@ -299,10 +299,6 @@ class _ConfigAliases:
"local_listen_port"
:
{
"local_listen_port"
,
"local_listen_port"
:
{
"local_listen_port"
,
"local_port"
,
"local_port"
,
"port"
},
"port"
},
"machine_list_filename"
:
{
"machine_list_filename"
,
"machine_list_file"
,
"machine_list"
,
"mlist"
},
"machines"
:
{
"machines"
,
"machines"
:
{
"machines"
,
"workers"
,
"workers"
,
"nodes"
},
"nodes"
},
...
...
python-package/lightgbm/dask.py
View file @
8ef874bd
...
@@ -233,10 +233,9 @@ def _train(client, data, label, params, model_factory, sample_weight=None, group
...
@@ -233,10 +233,9 @@ def _train(client, data, label, params, model_factory, sample_weight=None, group
# Some passed-in parameters can be removed:
# Some passed-in parameters can be removed:
# * 'machines': constructed automatically from Dask worker list
# * 'machines': constructed automatically from Dask worker list
# * 'machine_list_filename': not relevant for the Dask interface
# * 'num_machines': set automatically from Dask worker list
# * 'num_machines': set automatically from Dask worker list
# * 'num_threads': overridden to match nthreads on each Dask process
# * 'num_threads': overridden to match nthreads on each Dask process
for
param_alias
in
_ConfigAliases
.
get
(
'machines'
,
'machine_list_filename'
,
'num_machines'
,
'num_threads'
):
for
param_alias
in
_ConfigAliases
.
get
(
'machines'
,
'num_machines'
,
'num_threads'
):
params
.
pop
(
param_alias
,
None
)
params
.
pop
(
param_alias
,
None
)
# Split arrays/dataframes into parts. Arrange parts into dicts to enforce co-locality
# Split arrays/dataframes into parts. Arrange parts into dicts to enforce co-locality
...
...
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