Commit fff84463 authored by zhangyafeikimi's avatar zhangyafeikimi Committed by Guolin Ke
Browse files

fix typos (#336)

parent 45960910
......@@ -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 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.
*/
enum RecursiveHalvingNodeType {
......
......@@ -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 detla array
// load delta 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_
......@@ -25,7 +25,7 @@ Linkers::Linkers(NetworkConfig config) {
local_listen_port_ = config.local_listen_port;
socket_timeout_ = config.time_out;
rank_ = -1;
// parser clients from file
// parse clients from file
ParseMachineList(config.machine_list_filename.c_str());
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