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
68bd9ab9
"vscode:/vscode.git/clone" did not exist on "69d02e387a6f4516b991665c9f6ac1378c695492"
Commit
68bd9ab9
authored
Aug 08, 2016
by
Guolin Ke
Browse files
some warning fix
parent
1c774687
Changes
41
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
20 deletions
+20
-20
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+1
-1
src/boosting/gbdt.h
src/boosting/gbdt.h
+1
-1
src/boosting/score_updater.hpp
src/boosting/score_updater.hpp
+1
-1
src/io/dense_bin.hpp
src/io/dense_bin.hpp
+1
-1
src/io/ordered_sparse_bin.hpp
src/io/ordered_sparse_bin.hpp
+1
-1
src/io/parser.hpp
src/io/parser.hpp
+1
-1
src/io/sparse_bin.hpp
src/io/sparse_bin.hpp
+1
-1
src/metric/binary_metric.hpp
src/metric/binary_metric.hpp
+1
-1
src/metric/rank_metric.hpp
src/metric/rank_metric.hpp
+1
-1
src/metric/regression_metric.hpp
src/metric/regression_metric.hpp
+1
-1
src/network/linkers.h
src/network/linkers.h
+1
-1
src/network/socket_wrapper.hpp
src/network/socket_wrapper.hpp
+1
-1
src/objective/binary_objective.hpp
src/objective/binary_objective.hpp
+1
-1
src/objective/rank_objective.hpp
src/objective/rank_objective.hpp
+1
-1
src/objective/regression_objective.hpp
src/objective/regression_objective.hpp
+1
-1
src/treelearner/data_partition.hpp
src/treelearner/data_partition.hpp
+1
-1
src/treelearner/feature_histogram.hpp
src/treelearner/feature_histogram.hpp
+1
-1
src/treelearner/leaf_splits.hpp
src/treelearner/leaf_splits.hpp
+1
-1
src/treelearner/parallel_tree_learner.h
src/treelearner/parallel_tree_learner.h
+1
-1
src/treelearner/serial_tree_learner.h
src/treelearner/serial_tree_learner.h
+1
-1
No files found.
src/boosting/gbdt.cpp
View file @
68bd9ab9
...
@@ -298,7 +298,7 @@ void GBDT::ModelsFromString(const std::string& model_str, int num_used_model) {
...
@@ -298,7 +298,7 @@ void GBDT::ModelsFromString(const std::string& model_str, int num_used_model) {
int
end
=
static_cast
<
int
>
(
i
);
int
end
=
static_cast
<
int
>
(
i
);
std
::
string
tree_str
=
Common
::
Join
(
lines
,
start
,
end
,
'\n'
);
std
::
string
tree_str
=
Common
::
Join
(
lines
,
start
,
end
,
'\n'
);
models_
.
push_back
(
new
Tree
(
tree_str
));
models_
.
push_back
(
new
Tree
(
tree_str
));
if
(
num_used_model
>
0
&&
models_
.
size
()
>=
num_used_model
)
{
if
(
num_used_model
>
0
&&
models_
.
size
()
>=
static_cast
<
size_t
>
(
num_used_model
)
)
{
break
;
break
;
}
}
}
else
{
}
else
{
...
...
src/boosting/gbdt.h
View file @
68bd9ab9
...
@@ -158,4 +158,4 @@ private:
...
@@ -158,4 +158,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_BOOSTING_GBDT_H_
#endif // LightGBM_BOOSTING_GBDT_H_
src/boosting/score_updater.hpp
View file @
68bd9ab9
...
@@ -77,4 +77,4 @@ private:
...
@@ -77,4 +77,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_BOOSTING_SCORE_UPDATER_HPP_
#endif // LightGBM_BOOSTING_SCORE_UPDATER_HPP_
src/io/dense_bin.hpp
View file @
68bd9ab9
...
@@ -169,4 +169,4 @@ BinIterator* DenseBin<VAL_T>::GetIterator(data_size_t) const {
...
@@ -169,4 +169,4 @@ BinIterator* DenseBin<VAL_T>::GetIterator(data_size_t) const {
return
new
DenseBinIterator
<
VAL_T
>
(
this
);
return
new
DenseBinIterator
<
VAL_T
>
(
this
);
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_IO_DENSE_BIN_HPP_
#endif // LightGBM_IO_DENSE_BIN_HPP_
src/io/ordered_sparse_bin.hpp
View file @
68bd9ab9
...
@@ -129,4 +129,4 @@ private:
...
@@ -129,4 +129,4 @@ private:
std
::
vector
<
data_size_t
>
leaf_cnt_
;
std
::
vector
<
data_size_t
>
leaf_cnt_
;
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_IO_ORDERED_SPARSE_BIN_HPP_
#endif // LightGBM_IO_ORDERED_SPARSE_BIN_HPP_
src/io/parser.hpp
View file @
68bd9ab9
...
@@ -102,4 +102,4 @@ public:
...
@@ -102,4 +102,4 @@ public:
}
}
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_IO_PARSER_HPP_
#endif // LightGBM_IO_PARSER_HPP_
src/io/sparse_bin.hpp
View file @
68bd9ab9
...
@@ -275,4 +275,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(data_size_t start_idx) const {
...
@@ -275,4 +275,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(data_size_t start_idx) const {
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_IO_SPARSE_BIN_HPP_
#endif // LightGBM_IO_SPARSE_BIN_HPP_
src/metric/binary_metric.hpp
View file @
68bd9ab9
...
@@ -240,4 +240,4 @@ private:
...
@@ -240,4 +240,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_METRIC_BINARY_METRIC_HPP_
#endif // LightGBM_METRIC_BINARY_METRIC_HPP_
src/metric/rank_metric.hpp
View file @
68bd9ab9
...
@@ -163,4 +163,4 @@ private:
...
@@ -163,4 +163,4 @@ private:
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_METRIC_RANK_METRIC_HPP_
#endif // LightGBM_METRIC_RANK_METRIC_HPP_
src/metric/regression_metric.hpp
View file @
68bd9ab9
...
@@ -112,4 +112,4 @@ public:
...
@@ -112,4 +112,4 @@ public:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_METRIC_REGRESSION_METRIC_HPP_
#endif // LightGBM_METRIC_REGRESSION_METRIC_HPP_
src/network/linkers.h
View file @
68bd9ab9
...
@@ -255,4 +255,4 @@ inline void Linkers::SendRecv(int send_rank, char* send_data, int send_len,
...
@@ -255,4 +255,4 @@ inline void Linkers::SendRecv(int send_rank, char* send_data, int send_len,
#endif // USE_MPI
#endif // USE_MPI
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_NETWORK_LINKERS_H_
#endif // LightGBM_NETWORK_LINKERS_H_
src/network/socket_wrapper.hpp
View file @
68bd9ab9
...
@@ -260,4 +260,4 @@ private:
...
@@ -260,4 +260,4 @@ private:
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_SOCKET
#endif // USE_SOCKET
#endif
#endif
// LightGBM_NETWORK_SOCKET_WRAPPER_HPP_
#endif // LightGBM_NETWORK_SOCKET_WRAPPER_HPP_
src/objective/binary_objective.hpp
View file @
68bd9ab9
...
@@ -102,4 +102,4 @@ private:
...
@@ -102,4 +102,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_OBJECTIVE_BINARY_OBJECTIVE_HPP_
#endif // LightGBM_OBJECTIVE_BINARY_OBJECTIVE_HPP_
src/objective/rank_objective.hpp
View file @
68bd9ab9
...
@@ -233,4 +233,4 @@ private:
...
@@ -233,4 +233,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_OBJECTIVE_RANK_OBJECTIVE_HPP_
#endif // LightGBM_OBJECTIVE_RANK_OBJECTIVE_HPP_
src/objective/regression_objective.hpp
View file @
68bd9ab9
...
@@ -53,4 +53,4 @@ private:
...
@@ -53,4 +53,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_OBJECTIVE_REGRESSION_OBJECTIVE_HPP_
#endif // LightGBM_OBJECTIVE_REGRESSION_OBJECTIVE_HPP_
src/treelearner/data_partition.hpp
View file @
68bd9ab9
...
@@ -201,4 +201,4 @@ private:
...
@@ -201,4 +201,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_TREELEARNER_DATA_PARTITION_HPP_
#endif // LightGBM_TREELEARNER_DATA_PARTITION_HPP_
src/treelearner/feature_histogram.hpp
View file @
68bd9ab9
...
@@ -252,4 +252,4 @@ private:
...
@@ -252,4 +252,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_
#endif // LightGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_
src/treelearner/leaf_splits.hpp
View file @
68bd9ab9
...
@@ -154,4 +154,4 @@ private:
...
@@ -154,4 +154,4 @@ private:
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_TREELEARNER_LEAF_SPLITS_HPP_
#endif // LightGBM_TREELEARNER_LEAF_SPLITS_HPP_
src/treelearner/parallel_tree_learner.h
View file @
68bd9ab9
...
@@ -89,5 +89,5 @@ private:
...
@@ -89,5 +89,5 @@ private:
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_
#endif // LightGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_
src/treelearner/serial_tree_learner.h
View file @
68bd9ab9
...
@@ -184,4 +184,4 @@ inline void SerialTreeLearner::FindBestSplitForLeaf(LeafSplits* leaf_splits) {
...
@@ -184,4 +184,4 @@ inline void SerialTreeLearner::FindBestSplitForLeaf(LeafSplits* leaf_splits) {
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif
#endif
// LightGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_
#endif // LightGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_
Prev
1
2
3
Next
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