"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "85be04a62a961ed8f1a4012d6480e3b2c986880a"
Commit fff84463 authored by zhangyafeikimi's avatar zhangyafeikimi Committed by Guolin Ke
Browse files

fix typos (#336)

parent 45960910
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
* When number of machines is not power of 2, need group machines into power of 2 group. * 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. * 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 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 group has 2 machines, this group will have two type of nodes, one is the leader.
* leader will represent this group and communication with others. * leader will represent this group and communication with others.
*/ */
enum RecursiveHalvingNodeType { enum RecursiveHalvingNodeType {
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
uint32_t min_bin, uint32_t max_bin, uint32_t default_bin) uint32_t min_bin, uint32_t max_bin, uint32_t default_bin)
: bin_data_(bin_data), min_bin_(static_cast<VAL_T>(min_bin)), : bin_data_(bin_data), min_bin_(static_cast<VAL_T>(min_bin)),
max_bin_(static_cast<VAL_T>(max_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) { if (default_bin_ == 0) {
bias_ = 1; bias_ = 1;
} else { } else {
...@@ -198,7 +198,7 @@ public: ...@@ -198,7 +198,7 @@ public:
[](const std::pair<data_size_t, VAL_T>& a, const std::pair<data_size_t, VAL_T>& b) { [](const std::pair<data_size_t, VAL_T>& a, const std::pair<data_size_t, VAL_T>& b) {
return a.first < b.first; return a.first < b.first;
}); });
// load detla array // load delta array
LoadFromPair(idx_val_pairs); LoadFromPair(idx_val_pairs);
} }
......
...@@ -25,7 +25,7 @@ Linkers::Linkers(NetworkConfig config) { ...@@ -25,7 +25,7 @@ Linkers::Linkers(NetworkConfig config) {
local_listen_port_ = config.local_listen_port; local_listen_port_ = config.local_listen_port;
socket_timeout_ = config.time_out; socket_timeout_ = config.time_out;
rank_ = -1; rank_ = -1;
// parser clients from file // parse clients from file
ParseMachineList(config.machine_list_filename.c_str()); ParseMachineList(config.machine_list_filename.c_str());
if (rank_ == -1) { if (rank_ == -1) {
......
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