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
fff84463
Commit
fff84463
authored
Mar 06, 2017
by
zhangyafeikimi
Committed by
Guolin Ke
Mar 06, 2017
Browse files
fix typos (#336)
parent
45960910
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
include/LightGBM/network.h
include/LightGBM/network.h
+1
-1
src/io/sparse_bin.hpp
src/io/sparse_bin.hpp
+3
-3
src/network/linkers_socket.cpp
src/network/linkers_socket.cpp
+1
-1
No files found.
include/LightGBM/network.h
View file @
fff84463
...
...
@@ -41,7 +41,7 @@ public:
* When number of machines is not power of 2, need group machines into power of 2 group.
* And we can let each group has at most 2 machines.
* if the group only has 1 machine. this machine is the normal node
* if the grou has 2 machines, this group will have two type of nodes, one is the leader.
* if the grou
p
has 2 machines, this group will have two type of nodes, one is the leader.
* leader will represent this group and communication with others.
*/
enum
RecursiveHalvingNodeType
{
...
...
src/io/sparse_bin.hpp
View file @
fff84463
...
...
@@ -25,7 +25,7 @@ public:
uint32_t
min_bin
,
uint32_t
max_bin
,
uint32_t
default_bin
)
:
bin_data_
(
bin_data
),
min_bin_
(
static_cast
<
VAL_T
>
(
min_bin
)),
max_bin_
(
static_cast
<
VAL_T
>
(
max_bin
)),
default_bin_
(
static_cast
<
uint8_t
>
(
default_bin
))
{
default_bin_
(
static_cast
<
VAL_T
>
(
default_bin
))
{
if
(
default_bin_
==
0
)
{
bias_
=
1
;
}
else
{
...
...
@@ -198,7 +198,7 @@ public:
[](
const
std
::
pair
<
data_size_t
,
VAL_T
>&
a
,
const
std
::
pair
<
data_size_t
,
VAL_T
>&
b
)
{
return
a
.
first
<
b
.
first
;
});
// load de
t
la array
// load del
t
a array
LoadFromPair
(
idx_val_pairs
);
}
...
...
@@ -381,4 +381,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(uint32_t min_bin, uint32_t max_bin, u
}
}
// namespace LightGBM
#endif // LightGBM_IO_SPARSE_BIN_HPP_
\ No newline at end of file
#endif // LightGBM_IO_SPARSE_BIN_HPP_
src/network/linkers_socket.cpp
View file @
fff84463
...
...
@@ -25,7 +25,7 @@ Linkers::Linkers(NetworkConfig config) {
local_listen_port_
=
config
.
local_listen_port
;
socket_timeout_
=
config
.
time_out
;
rank_
=
-
1
;
// parse
r
clients from file
// parse clients from file
ParseMachineList
(
config
.
machine_list_filename
.
c_str
());
if
(
rank_
==
-
1
)
{
...
...
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